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

Side by Side Diff: extensions/renderer/extension_helper.h

Issue 655273005: Implement AutomationNode.querySelector(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 1 month 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 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 EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h"
10 #include "content/public/common/console_message_level.h" 11 #include "content/public/common/console_message_level.h"
11 #include "content/public/renderer/render_view_observer.h" 12 #include "content/public/renderer/render_view_observer.h"
12 #include "content/public/renderer/render_view_observer_tracker.h" 13 #include "content/public/renderer/render_view_observer_tracker.h"
13 #include "extensions/common/view_type.h" 14 #include "extensions/common/view_type.h"
14 15
15 class GURL; 16 class GURL;
16 class SkBitmap; 17 class SkBitmap;
17 struct ExtensionMsg_ExternalConnectionInfo; 18 struct ExtensionMsg_ExternalConnectionInfo;
18 19
19 namespace base { 20 namespace base {
20 class DictionaryValue; 21 class DictionaryValue;
21 class ListValue; 22 class ListValue;
22 } 23 }
23 24
24 namespace extensions { 25 namespace extensions {
25 class Dispatcher; 26 class Dispatcher;
Devlin 2014/10/28 21:05:10 nit: alphabetize (within sections)
aboxhall 2014/10/28 23:43:57 Done.
27 class AutomationApiHelper;
28
26 struct Message; 29 struct Message;
27 30
28 // RenderView-level plumbing for extension features. 31 // RenderView-level plumbing for extension features.
29 class ExtensionHelper 32 class ExtensionHelper
30 : public content::RenderViewObserver, 33 : public content::RenderViewObserver,
31 public content::RenderViewObserverTracker<ExtensionHelper> { 34 public content::RenderViewObserverTracker<ExtensionHelper> {
32 public: 35 public:
33 // Returns a list of extension RenderViews that match the given filter 36 // Returns a list of extension RenderViews that match the given filter
34 // criteria. If |browser_window_id| is not extension_misc::kUnknownWindowId, 37 // criteria. If |browser_window_id| is not extension_misc::kUnknownWindowId,
35 // the list is restricted to views in that browser window. 38 // the list is restricted to views in that browser window.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 94
92 // Type of view attached with RenderView. 95 // Type of view attached with RenderView.
93 ViewType view_type_; 96 ViewType view_type_;
94 97
95 // Id of the tab which the RenderView is attached to. 98 // Id of the tab which the RenderView is attached to.
96 int tab_id_; 99 int tab_id_;
97 100
98 // Id number of browser window which RenderView is attached to. 101 // Id number of browser window which RenderView is attached to.
99 int browser_window_id_; 102 int browser_window_id_;
100 103
104 // Renderer hooks for the Automation API
Devlin 2014/10/28 21:05:10 nit: .
aboxhall 2014/10/28 23:43:57 Done.
105 scoped_ptr<AutomationApiHelper> automation_api_helper_;
106
101 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 107 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
102 }; 108 };
103 109
104 } // namespace extensions 110 } // namespace extensions
105 111
106 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 112 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698