OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ | 5 #ifndef CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ |
6 #define CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ | 6 #define CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
11 #include "url/origin.h" | 12 #include "url/origin.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 class WebContents; | 16 class WebContents; |
16 | 17 |
17 // This class manages the tab-wide list of temporarily whitelisted plugin | 18 // This class manages the tab-wide list of temporarily whitelisted plugin |
18 // content origins that are exempt from power saving. | 19 // content origins that are exempt from power saving. |
19 // | 20 // |
(...skipping 22 matching lines...) Expand all Loading... |
42 void OnPluginContentOriginAllowed(const url::Origin& content_origin); | 43 void OnPluginContentOriginAllowed(const url::Origin& content_origin); |
43 | 44 |
44 std::set<url::Origin> whitelist_; | 45 std::set<url::Origin> whitelist_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(PluginContentOriginWhitelist); | 47 DISALLOW_COPY_AND_ASSIGN(PluginContentOriginWhitelist); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace content | 50 } // namespace content |
50 | 51 |
51 #endif // CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ | 52 #endif // CONTENT_BROWSER_PLUGIN_CONTENT_ORIGIN_WHITELIST_H_ |
OLD | NEW |