diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 21:03:04 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 21:03:04 +0000 |
commit | 6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9 (patch) | |
tree | 69b4e4ef0c667919461d92cc91e020f3b5122ba2 /chrome/common/temp_scaffolding_stubs.h | |
parent | 9f37ca87b7226929d4156a4ad00116f76876404d (diff) | |
download | chromium_src-6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9.zip chromium_src-6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9.tar.gz chromium_src-6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9.tar.bz2 |
Make plugin_process_host.cc and child_process_host.cc compile on Posix.
Review URL: http://codereview.chromium.org/27018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.h')
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.h | 67 |
1 files changed, 15 insertions, 52 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h index 8e70e60..8f8ec0e 100644 --- a/chrome/common/temp_scaffolding_stubs.h +++ b/chrome/common/temp_scaffolding_stubs.h @@ -256,6 +256,21 @@ class DownloadRequestManager namespace sandbox { +enum ResultCode { + SBOX_ALL_OK = 0, + SBOX_ERROR_GENERIC = 1, + SBOX_ERROR_BAD_PARAMS = 2, + SBOX_ERROR_UNSUPPORTED = 3, + SBOX_ERROR_NO_SPACE = 4, + SBOX_ERROR_INVALID_IPC = 5, + SBOX_ERROR_FAILED_IPC = 6, + SBOX_ERROR_NO_HANDLE = 7, + SBOX_ERROR_UNEXPECTED_CALL = 8, + SBOX_ERROR_WAIT_ALREADY_CALLED = 9, + SBOX_ERROR_CHANNEL_ERROR = 10, + SBOX_ERROR_LAST +}; + class BrokerServices { public: void Init() { NOTIMPLEMENTED(); } @@ -568,58 +583,6 @@ class PluginInstaller { PluginInstaller(WebContents*) { } }; -class ChildProcessHost : public ChildProcessInfo { - public: - class Iterator { - public: - explicit Iterator(ProcessType type) { NOTIMPLEMENTED(); } - ChildProcessInfo* operator->() { return *iterator_; } - ChildProcessInfo* operator*() { return *iterator_; } - ChildProcessInfo* operator++() { return NULL; } - bool Done() { - NOTIMPLEMENTED(); - return true; - } - private: - std::list<ChildProcessInfo*>::iterator iterator_; - }; - protected: - ChildProcessHost(ProcessType type, MessageLoop* main_message_loop) - : ChildProcessInfo(type) { - NOTIMPLEMENTED(); - } -}; - -class PluginProcessHost : public ChildProcessHost { - public: - explicit PluginProcessHost(MessageLoop* main_message_loop) - : ChildProcessHost(PLUGIN_PROCESS, main_message_loop) { - NOTIMPLEMENTED(); - } - bool Init(const WebPluginInfo& info, - const std::string& activex_clsid, - const std::wstring& locale) { - NOTIMPLEMENTED(); - return false; - } - void OpenChannelToPlugin(ResourceMessageFilter* renderer_message_filter, - const std::string& mime_type, - IPC::Message* reply_msg) { - NOTIMPLEMENTED(); - } - static void ReplyToRenderer(ResourceMessageFilter* renderer_message_filter, - const std::wstring& channel, - const FilePath& plugin_path, - IPC::Message* reply_msg) { - NOTIMPLEMENTED(); - } - void Shutdown() { NOTIMPLEMENTED(); } - const WebPluginInfo& info() const { return info_; } - private: - WebPluginInfo info_; - DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); -}; - class HungRendererWarning { public: static void HideForWebContents(WebContents*) { NOTIMPLEMENTED(); } |