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

Side by Side Diff: chrome/browser/extensions/extension_function.h

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Derived classes should implement this method to do their work and return 156 // Derived classes should implement this method to do their work and return
157 // success/failure. 157 // success/failure.
158 virtual bool RunImpl() = 0; 158 virtual bool RunImpl() = 0;
159 159
160 // Sends the result back to the extension. 160 // Sends the result back to the extension.
161 virtual void SendResponse(bool success) = 0; 161 virtual void SendResponse(bool success) = 0;
162 162
163 // Common implementation for SendResponse. 163 // Common implementation for SendResponse.
164 void SendResponseImpl(base::ProcessHandle process, 164 void SendResponseImpl(base::ProcessHandle process,
165 IPC::Message::Sender* ipc_sender, 165 IPC::Sender* ipc_sender,
166 int routing_id, 166 int routing_id,
167 bool success); 167 bool success);
168 168
169 // Called when we receive an extension api request that is invalid in a way 169 // Called when we receive an extension api request that is invalid in a way
170 // that JSON validation in the renderer should have caught. This should never 170 // that JSON validation in the renderer should have caught. This should never
171 // happen and could be an attacker trying to exploit the browser, so we crash 171 // happen and could be an attacker trying to exploit the browser, so we crash
172 // the renderer instead. 172 // the renderer instead.
173 void HandleBadMessage(base::ProcessHandle process); 173 void HandleBadMessage(base::ProcessHandle process);
174 174
175 // Return true if the argument to this function at |index| was provided and 175 // Return true if the argument to this function at |index| was provided and
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 public: 425 public:
426 SyncIOThreadExtensionFunction(); 426 SyncIOThreadExtensionFunction();
427 427
428 virtual void Run() OVERRIDE; 428 virtual void Run() OVERRIDE;
429 429
430 protected: 430 protected:
431 virtual ~SyncIOThreadExtensionFunction(); 431 virtual ~SyncIOThreadExtensionFunction();
432 }; 432 };
433 433
434 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ 434 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_event_router.cc ('k') | chrome/browser/extensions/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698