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

Side by Side Diff: components/plugins/renderer/plugin_uma.h

Issue 23606022: Move renderer plugin code into a new component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move renderer plugin code into a new component - split off youtube plugin, and respond to other cod… Created 7 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_RENDERER_PLUGINS_PLUGIN_UMA_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_PLUGIN_UMA_H_
6 #define CHROME_RENDERER_PLUGINS_PLUGIN_UMA_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_UMA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 // Used to send UMA data about missing plugins to UMA histogram server. Method 14 // Used to send UMA data about missing plugins to UMA histogram server. Method
15 // ReportPluginMissing should be called whenever plugin that is not available or 15 // ReportPluginMissing should be called whenever plugin that is not available or
16 // enabled is called. We try to determine plugin's type by requested mime type, 16 // enabled is called. We try to determine plugin's type by requested mime type,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Converts plugin's src to plugin type. 78 // Converts plugin's src to plugin type.
79 PluginType SrcToPluginType(const GURL& src); 79 PluginType SrcToPluginType(const GURL& src);
80 // Converts plugin's mime type to plugin type. 80 // Converts plugin's mime type to plugin type.
81 PluginType MimeTypeToPluginType(const std::string& mime_type); 81 PluginType MimeTypeToPluginType(const std::string& mime_type);
82 82
83 scoped_ptr<UMASender> report_sender_; 83 scoped_ptr<UMASender> report_sender_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(PluginUMAReporter); 85 DISALLOW_COPY_AND_ASSIGN(PluginUMAReporter);
86 }; 86 };
87 87
88 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_UMA_H_ 88 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_UMA_H_
89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698