Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 | 107 |
| 108 // Return the contents of a resource in a StringPiece given the resource id. | 108 // Return the contents of a resource in a StringPiece given the resource id. |
| 109 virtual base::StringPiece GetDataResource(int resource_id) const = 0; | 109 virtual base::StringPiece GetDataResource(int resource_id) const = 0; |
| 110 | 110 |
| 111 #if defined(OS_WIN) | 111 #if defined(OS_WIN) |
| 112 // Allows the embedder to sandbox a plugin, and apply a custom policy. | 112 // Allows the embedder to sandbox a plugin, and apply a custom policy. |
| 113 virtual bool SandboxPlugin(CommandLine* command_line, | 113 virtual bool SandboxPlugin(CommandLine* command_line, |
| 114 sandbox::TargetPolicy* policy) = 0; | 114 sandbox::TargetPolicy* policy) = 0; |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 #if defined(OS_MACOSX) | |
| 118 // Allows the embedder to define a new |sandbox_type| by mapping it to a | |
|
jeremy
2011/11/24 16:42:04
Can you point back to the enum of sandbox types in
jochen (gone - plz use gerrit)
2011/11/24 20:08:35
Done.
| |
| 119 // sandbox profile given by a resource ID. Returns -1 if no sandbox profile | |
|
jeremy
2011/11/24 16:42:04
*by mapping it to the resource id corresponding to
jochen (gone - plz use gerrit)
2011/11/24 20:08:35
Done.
| |
| 120 // for the given |sandbox_type| exists or the resource ID corresponding to | |
| 121 // the sandbox profile to use. | |
| 122 virtual int GetSandboxProfileForSandboxType(int sandbox_type) const = 0; | |
|
jeremy
2011/11/24 16:42:04
Per previous comment I think this would be a bit m
jochen (gone - plz use gerrit)
2011/11/24 20:08:35
Done.
| |
| 123 #endif | |
| 124 | |
| 117 private: | 125 private: |
| 118 // The embedder API for participating in browser logic. | 126 // The embedder API for participating in browser logic. |
| 119 ContentBrowserClient* browser_; | 127 ContentBrowserClient* browser_; |
| 120 // The embedder API for participating in plugin logic. | 128 // The embedder API for participating in plugin logic. |
| 121 ContentPluginClient* plugin_; | 129 ContentPluginClient* plugin_; |
| 122 // The embedder API for participating in renderer logic. | 130 // The embedder API for participating in renderer logic. |
| 123 ContentRendererClient* renderer_; | 131 ContentRendererClient* renderer_; |
| 124 // The embedder API for participating in utility logic. | 132 // The embedder API for participating in utility logic. |
| 125 ContentUtilityClient* utility_; | 133 ContentUtilityClient* utility_; |
| 126 }; | 134 }; |
| 127 | 135 |
| 128 } // namespace content | 136 } // namespace content |
| 129 | 137 |
| 130 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 138 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |