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

Side by Side Diff: content/browser/content_browser_client.h

Issue 7074025: Get rid of content dependency from sandbox_policy.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/browser/child_process_launcher.cc ('k') | content/browser/content_browser_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) 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "content/common/content_client.h" 11 #include "content/common/content_client.h"
12 12
13 class BrowserRenderProcessHost; 13 class BrowserRenderProcessHost;
14 class CommandLine; 14 class CommandLine;
15 class GURL; 15 class GURL;
16 class PluginProcessHost; 16 class PluginProcessHost;
17 class Profile; 17 class Profile;
18 class RenderViewHost; 18 class RenderViewHost;
19 class TabContents; 19 class TabContents;
20 class WorkerProcessHost; 20 class WorkerProcessHost;
21 21
22 namespace net { 22 namespace net {
23 class CookieList; 23 class CookieList;
24 class CookieOptions; 24 class CookieOptions;
25 } 25 }
26 26
27 namespace sandbox {
28 class TargetPolicy;
29 }
30
27 namespace content { 31 namespace content {
28 32
29 class ResourceContext; 33 class ResourceContext;
30 class WebUIFactory; 34 class WebUIFactory;
31 35
32 // Embedder API for participating in browser logic. 36 // Embedder API for participating in browser logic.
33 class ContentBrowserClient { 37 class ContentBrowserClient {
34 public: 38 public:
35 // Notifies that a new RenderHostView has been created. 39 // Notifies that a new RenderHostView has been created.
36 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); 40 virtual void RenderViewHostCreated(RenderViewHost* render_view_host);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const std::string& cookie_line, 102 const std::string& cookie_line,
99 const content::ResourceContext& context, 103 const content::ResourceContext& context,
100 int render_process_id, 104 int render_process_id,
101 int render_view_id, 105 int render_view_id,
102 net::CookieOptions* options); 106 net::CookieOptions* options);
103 107
104 #if defined(OS_LINUX) 108 #if defined(OS_LINUX)
105 // Can return an optional fd for crash handling, otherwise returns -1. 109 // Can return an optional fd for crash handling, otherwise returns -1.
106 virtual int GetCrashSignalFD(const std::string& process_type); 110 virtual int GetCrashSignalFD(const std::string& process_type);
107 #endif 111 #endif
112
113 #if defined(OS_WIN)
114 // Allows the embedder to sandbox a plugin, and apply a custom policy.
115 virtual bool SandboxPlugin(CommandLine* command_line,
116 sandbox::TargetPolicy* policy);
117 #endif
108 }; 118 };
109 119
110 } // namespace content 120 } // namespace content
111 121
112 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 122 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | content/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698