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

Side by Side Diff: chrome_frame/chrome_frame_delegate.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome_frame/cfproxy_test.cc ('k') | chrome_frame/chrome_frame_delegate.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_FRAME_CHROME_FRAME_DELEGATE_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlwin.h> 9 #include <atlwin.h>
10 #include <queue> 10 #include <queue>
(...skipping 17 matching lines...) Expand all
28 virtual void OnAutomationServerReady() = 0; 28 virtual void OnAutomationServerReady() = 0;
29 virtual void OnAutomationServerLaunchFailed( 29 virtual void OnAutomationServerLaunchFailed(
30 AutomationLaunchResult reason, const std::string& server_version) = 0; 30 AutomationLaunchResult reason, const std::string& server_version) = 0;
31 virtual void OnExtensionInstalled( 31 virtual void OnExtensionInstalled(
32 const FilePath& path, 32 const FilePath& path,
33 void* user_data, 33 void* user_data,
34 AutomationMsg_ExtensionResponseValues response) = 0; 34 AutomationMsg_ExtensionResponseValues response) = 0;
35 virtual void OnGetEnabledExtensionsComplete( 35 virtual void OnGetEnabledExtensionsComplete(
36 void* user_data, 36 void* user_data,
37 const std::vector<FilePath>& extension_directories) = 0; 37 const std::vector<FilePath>& extension_directories) = 0;
38 virtual void OnMessageReceived(const IPC::Message& msg) = 0; 38 virtual bool OnMessageReceived(const IPC::Message& msg) = 0;
39 virtual void OnChannelError() = 0; 39 virtual void OnChannelError() = 0;
40 40
41 // This remains in interface since we call it if Navigate() 41 // This remains in interface since we call it if Navigate()
42 // returns immediate error. 42 // returns immediate error.
43 virtual void OnLoadFailed(int error_code, const std::string& url) = 0; 43 virtual void OnLoadFailed(int error_code, const std::string& url) = 0;
44 44
45 // Returns true if this instance is alive and well for processing automation 45 // Returns true if this instance is alive and well for processing automation
46 // messages. 46 // messages.
47 virtual bool IsValid() const = 0; 47 virtual bool IsValid() const = 0;
48 48
(...skipping 20 matching lines...) Expand all
69 virtual void OnAutomationServerLaunchFailed( 69 virtual void OnAutomationServerLaunchFailed(
70 AutomationLaunchResult reason, const std::string& server_version) {} 70 AutomationLaunchResult reason, const std::string& server_version) {}
71 virtual void OnExtensionInstalled( 71 virtual void OnExtensionInstalled(
72 const FilePath& path, 72 const FilePath& path,
73 void* user_data, 73 void* user_data,
74 AutomationMsg_ExtensionResponseValues response) {} 74 AutomationMsg_ExtensionResponseValues response) {}
75 virtual void OnGetEnabledExtensionsComplete( 75 virtual void OnGetEnabledExtensionsComplete(
76 void* user_data, 76 void* user_data,
77 const std::vector<FilePath>& extension_directories) {} 77 const std::vector<FilePath>& extension_directories) {}
78 virtual void OnLoadFailed(int error_code, const std::string& url) {} 78 virtual void OnLoadFailed(int error_code, const std::string& url) {}
79 virtual void OnMessageReceived(const IPC::Message& msg); 79 virtual bool OnMessageReceived(const IPC::Message& msg);
80 virtual void OnChannelError() {} 80 virtual void OnChannelError() {}
81 81
82 static bool IsTabMessage(const IPC::Message& message); 82 static bool IsTabMessage(const IPC::Message& message);
83 83
84 virtual bool IsValid() const { 84 virtual bool IsValid() const {
85 return true; 85 return true;
86 } 86 }
87 87
88 virtual void OnHostMoved() {} 88 virtual void OnHostMoved() {}
89 89
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 return false; 199 return false;
200 } 200 }
201 201
202 Lock lock_; 202 Lock lock_;
203 std::queue<Task*> pending_tasks_; 203 std::queue<Task*> pending_tasks_;
204 }; 204 };
205 205
206 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ 206 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome_frame/cfproxy_test.cc ('k') | chrome_frame/chrome_frame_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698