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

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

Issue 1132093003: Add metrics to record TCP/UDP connections made from Flash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 int* render_process_id, 65 int* render_process_id,
66 int* render_frame_id) const override; 66 int* render_frame_id) const override;
67 const std::string& GetPluginName() override; 67 const std::string& GetPluginName() override;
68 const base::FilePath& GetPluginPath() override; 68 const base::FilePath& GetPluginPath() override;
69 const base::FilePath& GetProfileDataDirectory() override; 69 const base::FilePath& GetProfileDataDirectory() override;
70 GURL GetDocumentURLForInstance(PP_Instance instance) override; 70 GURL GetDocumentURLForInstance(PP_Instance instance) override;
71 GURL GetPluginURLForInstance(PP_Instance instance) override; 71 GURL GetPluginURLForInstance(PP_Instance instance) override;
72 void SetOnKeepaliveCallback( 72 void SetOnKeepaliveCallback(
73 const BrowserPpapiHost::OnKeepaliveCallback& callback) override; 73 const BrowserPpapiHost::OnKeepaliveCallback& callback) override;
74 74
75 // Whether the plugin context is secure. That is, it is served from a secure
76 // origin and it is embedded within a hierarchy of secure frames. This value
77 // comes from the renderer so should not be trusted. It is used for metrics.
78 bool IsPotentiallySecurePluginContext(PP_Instance instance);
79
75 void set_plugin_process(base::Process process) { 80 void set_plugin_process(base::Process process) {
76 plugin_process_ = process.Pass(); 81 plugin_process_ = process.Pass();
77 } 82 }
78 83
79 bool external_plugin() const { return external_plugin_; } 84 bool external_plugin() const { return external_plugin_; }
80 85
81 // These two functions are notifications that an instance has been created 86 // These two functions are notifications that an instance has been created
82 // or destroyed. They allow us to maintain a mapping of PP_Instance to data 87 // or destroyed. They allow us to maintain a mapping of PP_Instance to data
83 // associated with the instance including view IDs in the browser process. 88 // associated with the instance including view IDs in the browser process.
84 void AddInstance(PP_Instance instance, 89 void AddInstance(PP_Instance instance,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 scoped_refptr<HostMessageFilter> message_filter_; 165 scoped_refptr<HostMessageFilter> message_filter_;
161 166
162 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; 167 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_;
163 168
164 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); 169 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl);
165 }; 170 };
166 171
167 } // namespace content 172 } // namespace content
168 173
169 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 174 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698