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

Side by Side Diff: third_party/WebKit/Source/modules/plugins/NavigatorPlugins.h

Issue 2618573003: Remove ContextClient from NavigatorPlugins (Closed)
Patch Set: temp Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/plugins/NavigatorPlugins.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 NavigatorPlugins_h 5 #ifndef NavigatorPlugins_h
6 #define NavigatorPlugins_h 6 #define NavigatorPlugins_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/frame/Navigator.h" 8 #include "core/frame/Navigator.h"
10 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 class DOMMimeTypeArray; 13 class DOMMimeTypeArray;
15 class DOMPluginArray; 14 class DOMPluginArray;
16 class LocalFrame; 15 class LocalFrame;
17 class Navigator; 16 class Navigator;
18 17
19 class NavigatorPlugins final : public GarbageCollected<NavigatorPlugins>, 18 class NavigatorPlugins final : public GarbageCollected<NavigatorPlugins>,
20 public Supplement<Navigator>, 19 public Supplement<Navigator> {
21 public ContextClient {
22 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPlugins); 20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPlugins);
23 21
24 public: 22 public:
25 static NavigatorPlugins& from(Navigator&); 23 static NavigatorPlugins& from(Navigator&);
26 static NavigatorPlugins* toNavigatorPlugins(Navigator&); 24 static NavigatorPlugins* toNavigatorPlugins(Navigator&);
27 25
28 static DOMPluginArray* plugins(Navigator&); 26 static DOMPluginArray* plugins(Navigator&);
29 static DOMMimeTypeArray* mimeTypes(Navigator&); 27 static DOMMimeTypeArray* mimeTypes(Navigator&);
30 static bool javaEnabled(Navigator&); 28 static bool javaEnabled(Navigator&);
31 29
32 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
33 31
34 private: 32 private:
35 explicit NavigatorPlugins(Navigator&); 33 explicit NavigatorPlugins(Navigator&);
36 34
37 static const char* supplementName(); 35 static const char* supplementName();
38 36
39 DOMPluginArray* plugins(LocalFrame*) const; 37 DOMPluginArray* plugins(LocalFrame*) const;
40 DOMMimeTypeArray* mimeTypes(LocalFrame*) const; 38 DOMMimeTypeArray* mimeTypes(LocalFrame*) const;
41 39
42 mutable Member<DOMPluginArray> m_plugins; 40 mutable Member<DOMPluginArray> m_plugins;
43 mutable Member<DOMMimeTypeArray> m_mimeTypes; 41 mutable Member<DOMMimeTypeArray> m_mimeTypes;
44 }; 42 };
45 43
46 } // namespace blink 44 } // namespace blink
47 45
48 #endif // NavigatorPlugins_h 46 #endif // NavigatorPlugins_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/plugins/NavigatorPlugins.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698