Add printing related source codes from chrome.
This commit is contained in:
parent
cab546cbb7
commit
d934526bb3
34 changed files with 7794 additions and 0 deletions
39
chromium_src/chrome/browser/browser_process.h
Normal file
39
chromium_src/chrome/browser/browser_process.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This interface is for managing the global services of the application. Each
|
||||
// service is lazily created when requested the first time. The service getters
|
||||
// will return NULL if the service is not available, so callers must check for
|
||||
// this condition.
|
||||
|
||||
#ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
|
||||
#define CHROME_BROWSER_BROWSER_PROCESS_H_
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace printing {
|
||||
class PrintJobManager;
|
||||
}
|
||||
|
||||
// NOT THREAD SAFE, call only from the main thread.
|
||||
// These functions shouldn't return NULL unless otherwise noted.
|
||||
class BrowserProcess {
|
||||
public:
|
||||
BrowserProcess();
|
||||
~BrowserProcess();
|
||||
|
||||
std::string GetApplicationLocale();
|
||||
|
||||
printing::PrintJobManager* print_job_manager();
|
||||
|
||||
private:
|
||||
scoped_ptr<printing::PrintJobManager> print_job_manager_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
|
||||
};
|
||||
|
||||
extern BrowserProcess* g_browser_process;
|
||||
|
||||
#endif // CHROME_BROWSER_BROWSER_PROCESS_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue