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

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: Fix heap-use-after-free issue by not keeping a scoped_ptr to automation_api_helper in extension_hel… 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 {
26 class AutomationApiHelper;
25 class Dispatcher; 27 class Dispatcher;
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
101 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 104 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
102 }; 105 };
103 106
104 } // namespace extensions 107 } // namespace extensions
105 108
106 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 109 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/api/automation/automation_api_helper.cc ('k') | extensions/renderer/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698