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

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

Issue 10806075: Get the path of the plugin interposing library from the embedder, since they're the ones who bundle… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « content/plugin/plugin_main_mac.mm ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Allows the embedder to define a new |sandbox_type| by mapping it to the 132 // Allows the embedder to define a new |sandbox_type| by mapping it to the
133 // resource ID corresponding to the sandbox profile to use. The legal values 133 // resource ID corresponding to the sandbox profile to use. The legal values
134 // for |sandbox_type| are defined by the embedder and should start with 134 // for |sandbox_type| are defined by the embedder and should start with
135 // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox 135 // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox
136 // profile for the given |sandbox_type| exists. Otherwise, 136 // profile for the given |sandbox_type| exists. Otherwise,
137 // |sandbox_profile_resource_id| is set to the resource ID corresponding to 137 // |sandbox_profile_resource_id| is set to the resource ID corresponding to
138 // the sandbox profile to use and true is returned. 138 // the sandbox profile to use and true is returned.
139 virtual bool GetSandboxProfileForSandboxType( 139 virtual bool GetSandboxProfileForSandboxType(
140 int sandbox_type, 140 int sandbox_type,
141 int* sandbox_profile_resource_id) const; 141 int* sandbox_profile_resource_id) const;
142
143 // Gets the Carbon interposing path to give to DYLD. Returns an empty string
144 // if the embedder doesn't bundle it.
145 virtual std::string GetCarbonInterposePath() const;
142 #endif 146 #endif
143 147
144 void set_browser_for_testing(ContentBrowserClient* c) { browser_ = c; } 148 void set_browser_for_testing(ContentBrowserClient* c) { browser_ = c; }
145 void set_renderer_for_testing(ContentRendererClient* r) { renderer_ = r; } 149 void set_renderer_for_testing(ContentRendererClient* r) { renderer_ = r; }
146 150
147 private: 151 private:
148 friend class ContentClientInitializer; // To set these pointers. 152 friend class ContentClientInitializer; // To set these pointers.
149 153
150 // The embedder API for participating in browser logic. 154 // The embedder API for participating in browser logic.
151 ContentBrowserClient* browser_; 155 ContentBrowserClient* browser_;
152 // The embedder API for participating in plugin logic. 156 // The embedder API for participating in plugin logic.
153 ContentPluginClient* plugin_; 157 ContentPluginClient* plugin_;
154 // The embedder API for participating in renderer logic. 158 // The embedder API for participating in renderer logic.
155 ContentRendererClient* renderer_; 159 ContentRendererClient* renderer_;
156 // The embedder API for participating in utility logic. 160 // The embedder API for participating in utility logic.
157 ContentUtilityClient* utility_; 161 ContentUtilityClient* utility_;
158 }; 162 };
159 163
160 } // namespace content 164 } // namespace content
161 165
162 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/plugin/plugin_main_mac.mm ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698