OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
Lei Zhang
2014/12/04 22:59:43
nit: no (c)
Jitu( very slow this week)
2014/12/05 05:39:31
Done.
| |
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 extensions portion of ChromeContentBrowserClient. | |
Lei Zhang
2014/12/04 22:59:43
comment needs to be updated
Jitu( very slow this week)
2014/12/05 05:39:31
Done.
| |
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_ | |
OLD | NEW |