| OLD | NEW |
| 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 CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ |
| 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/version.h" | 13 #include "base/version.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 struct WebPluginInfo; | 17 struct WebPluginInfo; |
| 18 } | 18 } |
| 19 | 19 |
| 20 class PluginMetadata { | 20 class PluginMetadata { |
| 21 public: | 21 public: |
| 22 // Information about a certain version of the plugin. | 22 // Information about a certain version of the plugin. |
| 23 enum SecurityStatus { | 23 enum SecurityStatus { |
| 24 SECURITY_STATUS_UP_TO_DATE, | 24 SECURITY_STATUS_UP_TO_DATE, |
| 25 SECURITY_STATUS_OUT_OF_DATE, | 25 SECURITY_STATUS_OUT_OF_DATE, |
| 26 SECURITY_STATUS_REQUIRES_AUTHORIZATION, | 26 SECURITY_STATUS_REQUIRES_AUTHORIZATION, |
| 27 SECURITY_STATUS_FULLY_TRUSTED, |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 // Used by about:plugins to disable Reader plugin when internal PDF viewer is | 30 // Used by about:plugins to disable Reader plugin when internal PDF viewer is |
| 30 // enabled. | 31 // enabled. |
| 31 static const char kAdobeReaderGroupName[]; | 32 static const char kAdobeReaderGroupName[]; |
| 32 static const char kJavaGroupName[]; | 33 static const char kJavaGroupName[]; |
| 33 static const char kQuickTimeGroupName[]; | 34 static const char kQuickTimeGroupName[]; |
| 34 static const char kShockwaveGroupName[]; | 35 static const char kShockwaveGroupName[]; |
| 35 static const char kRealPlayerGroupName[]; | 36 static const char kRealPlayerGroupName[]; |
| 36 static const char kSilverlightGroupName[]; | 37 static const char kSilverlightGroupName[]; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 GURL help_url_; | 102 GURL help_url_; |
| 102 std::string language_; | 103 std::string language_; |
| 103 std::map<Version, SecurityStatus, VersionComparator> versions_; | 104 std::map<Version, SecurityStatus, VersionComparator> versions_; |
| 104 std::vector<std::string> all_mime_types_; | 105 std::vector<std::string> all_mime_types_; |
| 105 std::vector<std::string> matching_mime_types_; | 106 std::vector<std::string> matching_mime_types_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(PluginMetadata); | 108 DISALLOW_COPY_AND_ASSIGN(PluginMetadata); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ | 111 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ |
| OLD | NEW |