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

Side by Side Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 1413033012: Fix crashes in AutomationInternalCustomBindings due to no v8 context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call inherited method from AutomationInternalCustomBindings::Invalidate Created 5 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
« no previous file with comments | « no previous file | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('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 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 CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/common/extensions/api/automation.h" 9 #include "chrome/common/extensions/api/automation.h"
10 #include "extensions/renderer/object_backed_native_handler.h" 10 #include "extensions/renderer/object_backed_native_handler.h"
(...skipping 29 matching lines...) Expand all
40 40
41 void OnMessageReceived(const IPC::Message& message); 41 void OnMessageReceived(const IPC::Message& message);
42 42
43 TreeCache* GetTreeCacheFromTreeID(int tree_id); 43 TreeCache* GetTreeCacheFromTreeID(int tree_id);
44 44
45 ScriptContext* context() const { 45 ScriptContext* context() const {
46 return ObjectBackedNativeHandler::context(); 46 return ObjectBackedNativeHandler::context();
47 } 47 }
48 48
49 private: 49 private:
50 // ObjectBackedNativeHandler overrides:
51 void Invalidate() override;
52
50 // Returns whether this extension has the "interact" permission set (either 53 // Returns whether this extension has the "interact" permission set (either
51 // explicitly or implicitly after manifest parsing). 54 // explicitly or implicitly after manifest parsing).
52 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args); 55 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args);
53 56
54 // Returns an object with bindings that will be added to the 57 // Returns an object with bindings that will be added to the
55 // chrome.automation namespace. 58 // chrome.automation namespace.
56 void GetSchemaAdditions(const v8::FunctionCallbackInfo<v8::Value>& args); 59 void GetSchemaAdditions(const v8::FunctionCallbackInfo<v8::Value>& args);
57 60
58 // Get the routing ID for the extension. 61 // Get the routing ID for the extension.
59 void GetRoutingID(const v8::FunctionCallbackInfo<v8::Value>& args); 62 void GetRoutingID(const v8::FunctionCallbackInfo<v8::Value>& args);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; 169 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
167 scoped_refptr<AutomationMessageFilter> message_filter_; 170 scoped_refptr<AutomationMessageFilter> message_filter_;
168 bool is_active_profile_; 171 bool is_active_profile_;
169 172
170 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 173 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
171 }; 174 };
172 175
173 } // namespace extensions 176 } // namespace extensions
174 177
175 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 178 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698