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

Side by Side Diff: content/public/plugin/content_plugin_client.h

Issue 13548005: Add UMA reporting on failure to load ppapi plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CL refacted. Created 7 years, 8 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
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_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
6 #define CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_ 6 #define CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
7 7
8 #include "base/files/file_path.h"
8 #include "base/string16.h" 9 #include "base/string16.h"
9 #include "content/public/common/content_client.h" 10 #include "content/public/common/content_client.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 // Embedder API for participating in plugin logic. 14 // Embedder API for participating in plugin logic.
14 class CONTENT_EXPORT ContentPluginClient { 15 class CONTENT_EXPORT ContentPluginClient {
15 public: 16 public:
17 enum PluginLoadStatus {
ddorwin 2013/04/08 18:04:34 Status or Result?
xhwang 2013/04/09 00:34:11 Done.
18 LOAD_SUCCESS,
19 UNKNOWN_ERROR,
piman 2013/04/08 19:38:43 You don't use this. Remove?
xhwang 2013/04/09 00:34:11 Done.
20 LOAD_FAILED,
21 ENTRY_POINT_MISSING,
22 INIT_FAILED,
23 LOAD_STATUS_MAX
piman 2013/04/08 19:38:43 nit: this last value I was very confused about unt
xhwang 2013/04/09 00:34:11 Done.
24 };
25
16 virtual ~ContentPluginClient() {} 26 virtual ~ContentPluginClient() {}
17 27
18 // Called to perform any per-process initialization necessary before 28 // Called to perform any per-process initialization necessary before
19 // the sandbox is initialized for the plugin process. 29 // the sandbox is initialized for the plugin process.
20 virtual void PreSandboxInitialization() {} 30 virtual void PreSandboxInitialization() {}
21 31
22 // Notifies that a plugin process has started. 32 // Notifies that a plugin process has started.
23 virtual void PluginProcessStarted(const string16& plugin_name) {} 33 virtual void PluginProcessStarted(const string16& plugin_name) {}
34
35 // Notifies that a plugin has been loaded.
ddorwin 2013/04/08 18:04:34 Could also be that a plugin load failed. I'm not s
xhwang 2013/04/09 00:34:11 Done.
36 virtual void PluginLoaded(const base::FilePath& plugin_path,
37 PluginLoadStatus status) {}
24 }; 38 };
25 39
26 } // namespace content 40 } // namespace content
27 41
28 #endif // CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_ 42 #endif // CONTENT_PUBLIC_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
OLDNEW
« content/ppapi_plugin/ppapi_thread.cc ('K') | « content/ppapi_plugin/ppapi_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698