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

Side by Side Diff: chrome/browser/plugins/chrome_content_browser_client_plugins_part.h

Issue 591063003: Split ChromeContentBrowserClient into smaller parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix review comment Created 6 years 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PLUGINS_CHROME_CONTENT_BROWSER_CLIENT_PLUGINS_PART_H_
6 #define CHROME_BROWSER_PLUGINS_CHROME_CONTENT_BROWSER_CLIENT_PLUGINS_PART_H_
7
8 #include "chrome/browser/chrome_content_browser_client_parts.h"
9 #include "content/public/browser/browser_ppapi_host.h"
10 #include "content/public/common/socket_permission_request.h"
11
12 namespace plugins {
13
14 // Implements the plugins portion of ChromeContentBrowserClient.
15 class ChromeContentBrowserClientPluginsPart
16 : public ChromeContentBrowserClientParts {
17 public:
18 ChromeContentBrowserClientPluginsPart();
19 virtual ~ChromeContentBrowserClientPluginsPart();
20
21 // Corresponding to the ChromeContentBrowserClient function of the same name.
22 static bool IsPluginAllowedToUseDevChannelAPIs(
23 content::BrowserContext* browser_context,
24 const GURL& url,
25 const std::set<std::string>& allowed_dev_channel_origins);
26
27 static bool AllowPepperSocketAPI(
28 content::BrowserContext* browser_context,
29 const GURL& url,
30 bool private_api,
31 const content::SocketPermissionRequest* params,
32 const std::set<std::string>& allowed_socket_origin);
33
34 static bool IsPluginAllowedToCallRequestOSFileHandle(
35 content::BrowserContext* browser_context,
36 const GURL& url,
37 const std::set<std::string>& allowed_file_handle_origins);
38
39 static void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host);
40
41 private:
42 // ChromeContentBrowserClientParts:
43 void RenderProcessWillLaunch(content::RenderProcessHost* host) override;
44
45 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientPluginsPart);
46 };
47
48 } // namespace plugins
49
50 #endif // CHROME_BROWSER_PLUGINS_CHROME_CONTENT_BROWSER_CLIENT_PLUGINS_PART_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698