Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: content/public/common/content_client.h

Issue 8589001: Load mac sandbox definitions from resources instead of the bundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: different approach Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
119 // sandbox policy given by a resource ID. Returns -1 if no sandbox policy for
120 // the given |sandbox_type| exists.
121 virtual int GetSandboxPolicyForSandboxType(int sandbox_type) const = 0;
122 #endif
123
117 private: 124 private:
118 // The embedder API for participating in browser logic. 125 // The embedder API for participating in browser logic.
119 ContentBrowserClient* browser_; 126 ContentBrowserClient* browser_;
120 // The embedder API for participating in plugin logic. 127 // The embedder API for participating in plugin logic.
121 ContentPluginClient* plugin_; 128 ContentPluginClient* plugin_;
122 // The embedder API for participating in renderer logic. 129 // The embedder API for participating in renderer logic.
123 ContentRendererClient* renderer_; 130 ContentRendererClient* renderer_;
124 // The embedder API for participating in utility logic. 131 // The embedder API for participating in utility logic.
125 ContentUtilityClient* utility_; 132 ContentUtilityClient* utility_;
126 }; 133 };
127 134
128 } // namespace content 135 } // namespace content
129 136
130 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 137 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698