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

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

Issue 141523010: Pepper: Log in UMA when an interface is used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again Created 6 years, 10 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 | « build/all.gyp ('k') | content/browser/renderer_host/pepper/browser_ppapi_host_impl.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) 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // IPC::ChannelProxy::MessageFilter. 92 // IPC::ChannelProxy::MessageFilter.
93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
94 94
95 void OnHostDestroyed(); 95 void OnHostDestroyed();
96 96
97 private: 97 private:
98 virtual ~HostMessageFilter(); 98 virtual ~HostMessageFilter();
99 99
100 void OnKeepalive(); 100 void OnKeepalive();
101 void OnHostMsgLogInterfaceUsage(int hash) const;
101 102
102 // Non owning pointers cleared in OnHostDestroyed() 103 // Non owning pointers cleared in OnHostDestroyed()
103 ppapi::host::PpapiHost* ppapi_host_; 104 ppapi::host::PpapiHost* ppapi_host_;
104 BrowserPpapiHostImpl* browser_ppapi_host_impl_; 105 BrowserPpapiHostImpl* browser_ppapi_host_impl_;
105 }; 106 };
106 107
107 // Reports plugin activity to the callback set with SetOnKeepaliveCallback. 108 // Reports plugin activity to the callback set with SetOnKeepaliveCallback.
108 void OnKeepalive(); 109 void OnKeepalive();
109 110
110 scoped_ptr<ppapi::host::PpapiHost> ppapi_host_; 111 scoped_ptr<ppapi::host::PpapiHost> ppapi_host_;
(...skipping 19 matching lines...) Expand all
130 scoped_refptr<HostMessageFilter> message_filter_; 131 scoped_refptr<HostMessageFilter> message_filter_;
131 132
132 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; 133 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); 135 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl);
135 }; 136 };
136 137
137 } // namespace content 138 } // namespace content
138 139
139 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 140 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698