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

Side by Side Diff: content/browser/webui/web_ui_impl.h

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « content/browser/tracing/tracing_ui.cc ('k') | content/browser/webui/web_ui_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEBUI_WEB_UI_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void SetBindings(int bindings) override; 49 void SetBindings(int bindings) override;
50 bool HasRenderFrame() override; 50 bool HasRenderFrame() override;
51 void AddMessageHandler(WebUIMessageHandler* handler) override; 51 void AddMessageHandler(WebUIMessageHandler* handler) override;
52 typedef base::Callback<void(const base::ListValue*)> MessageCallback; 52 typedef base::Callback<void(const base::ListValue*)> MessageCallback;
53 void RegisterMessageCallback(const std::string& message, 53 void RegisterMessageCallback(const std::string& message,
54 const MessageCallback& callback) override; 54 const MessageCallback& callback) override;
55 void ProcessWebUIMessage(const GURL& source_url, 55 void ProcessWebUIMessage(const GURL& source_url,
56 const std::string& message, 56 const std::string& message,
57 const base::ListValue& args) override; 57 const base::ListValue& args) override;
58 bool CanCallJavascript() override; 58 bool CanCallJavascript() override;
59 void CallJavascriptFunction(const std::string& function_name) override; 59 void CallJavascriptFunctionUnsafe(const std::string& function_name) override;
60 void CallJavascriptFunction(const std::string& function_name, 60 void CallJavascriptFunctionUnsafe(const std::string& function_name,
61 const base::Value& arg) override; 61 const base::Value& arg) override;
62 void CallJavascriptFunction(const std::string& function_name, 62 void CallJavascriptFunctionUnsafe(const std::string& function_name,
63 const base::Value& arg1, 63 const base::Value& arg1,
64 const base::Value& arg2) override; 64 const base::Value& arg2) override;
65 void CallJavascriptFunction(const std::string& function_name, 65 void CallJavascriptFunctionUnsafe(const std::string& function_name,
66 const base::Value& arg1, 66 const base::Value& arg1,
67 const base::Value& arg2, 67 const base::Value& arg2,
68 const base::Value& arg3) override; 68 const base::Value& arg3) override;
69 void CallJavascriptFunction(const std::string& function_name, 69 void CallJavascriptFunctionUnsafe(const std::string& function_name,
70 const base::Value& arg1, 70 const base::Value& arg1,
71 const base::Value& arg2, 71 const base::Value& arg2,
72 const base::Value& arg3, 72 const base::Value& arg3,
73 const base::Value& arg4) override; 73 const base::Value& arg4) override;
74 void CallJavascriptFunction( 74 void CallJavascriptFunctionUnsafe(
75 const std::string& function_name, 75 const std::string& function_name,
76 const std::vector<const base::Value*>& args) override; 76 const std::vector<const base::Value*>& args) override;
77 77
78 // IPC::Listener implementation: 78 // IPC::Listener implementation:
79 bool OnMessageReceived(const IPC::Message& message) override; 79 bool OnMessageReceived(const IPC::Message& message) override;
80 80
81 private: 81 private:
82 // IPC message handling. 82 // IPC message handling.
83 void OnWebUISend(const GURL& source_url, 83 void OnWebUISend(const GURL& source_url,
84 const std::string& message, 84 const std::string& message,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const std::string frame_name_; 119 const std::string frame_name_;
120 120
121 std::unique_ptr<WebUIController> controller_; 121 std::unique_ptr<WebUIController> controller_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); 123 DISALLOW_COPY_AND_ASSIGN(WebUIImpl);
124 }; 124 };
125 125
126 } // namespace content 126 } // namespace content
127 127
128 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 128 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | content/browser/webui/web_ui_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698