OLD | NEW |
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_PLUGIN_UMA_H_ | 5 #ifndef CHROME_RENDERER_PLUGINS_PLUGIN_UMA_H_ |
6 #define CHROME_RENDERER_PLUGIN_UMA_H_ | 6 #define CHROME_RENDERER_PLUGINS_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 "googleurl/src/gurl.h" | 12 #include "googleurl/src/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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Converts plugin's src to plugin type. | 59 // Converts plugin's src to plugin type. |
60 PluginType SrcToPluginType(const GURL& src); | 60 PluginType SrcToPluginType(const GURL& src); |
61 // Converts plugin's mime type to plugin type. | 61 // Converts plugin's mime type to plugin type. |
62 PluginType MimeTypeToPluginType(const std::string& mime_type); | 62 PluginType MimeTypeToPluginType(const std::string& mime_type); |
63 | 63 |
64 scoped_ptr<UMASender> report_sender_; | 64 scoped_ptr<UMASender> report_sender_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(MissingPluginReporter); | 66 DISALLOW_COPY_AND_ASSIGN(MissingPluginReporter); |
67 }; | 67 }; |
68 | 68 |
69 #endif // CHROME_RENDERER_PLUGIN_UMA_H_ | 69 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_UMA_H_ |
70 | 70 |
OLD | NEW |