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

Side by Side Diff: content/browser/renderer_host/pepper/browser_ppapi_host_impl.h

Issue 61643022: Proxy private UMA pepper interface for out-of-process and NaCl plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add back browser impl for testing Created 7 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
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_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual base::ProcessHandle GetPluginProcessHandle() const OVERRIDE; 45 virtual base::ProcessHandle GetPluginProcessHandle() const OVERRIDE;
46 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; 46 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE;
47 virtual bool GetRenderViewIDsForInstance(PP_Instance instance, 47 virtual bool GetRenderViewIDsForInstance(PP_Instance instance,
48 int* render_process_id, 48 int* render_process_id,
49 int* render_view_id) const OVERRIDE; 49 int* render_view_id) const OVERRIDE;
50 virtual const std::string& GetPluginName() OVERRIDE; 50 virtual const std::string& GetPluginName() OVERRIDE;
51 virtual const base::FilePath& GetPluginPath() OVERRIDE; 51 virtual const base::FilePath& GetPluginPath() OVERRIDE;
52 virtual const base::FilePath& GetProfileDataDirectory() OVERRIDE; 52 virtual const base::FilePath& GetProfileDataDirectory() OVERRIDE;
53 virtual GURL GetDocumentURLForInstance(PP_Instance instance) OVERRIDE; 53 virtual GURL GetDocumentURLForInstance(PP_Instance instance) OVERRIDE;
54 virtual GURL GetPluginURLForInstance(PP_Instance instance) OVERRIDE; 54 virtual GURL GetPluginURLForInstance(PP_Instance instance) OVERRIDE;
55 virtual bool IsInProcess() const OVERRIDE;
55 56
56 void set_plugin_process_handle(base::ProcessHandle handle) { 57 void set_plugin_process_handle(base::ProcessHandle handle) {
57 plugin_process_handle_ = handle; 58 plugin_process_handle_ = handle;
58 } 59 }
59 60
60 bool in_process() const { return in_process_; } 61 bool in_process() const { return in_process_; }
61 bool external_plugin() const { return external_plugin_; } 62 bool external_plugin() const { return external_plugin_; }
62 63
63 // These two functions are notifications that an instance has been created 64 // These two functions are notifications that an instance has been created
64 // or destroyed. They allow us to maintain a mapping of PP_Instance to data 65 // or destroyed. They allow us to maintain a mapping of PP_Instance to data
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 InstanceMap instance_map_; 118 InstanceMap instance_map_;
118 119
119 scoped_refptr<HostMessageFilter> message_filter_; 120 scoped_refptr<HostMessageFilter> message_filter_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); 122 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl);
122 }; 123 };
123 124
124 } // namespace content 125 } // namespace content
125 126
126 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 127 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698