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

Side by Side Diff: chrome_frame/chrome_frame_delegate.h

Issue 4194007: Revert "Refactor automation messages." due to mysterious problems on mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_activex_base.h ('k') | chrome_frame/chrome_frame_npapi.h » ('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>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/lock.h" 15 #include "base/lock.h"
16 #include "chrome/common/automation_messages.h" 16 #include "chrome/test/automation/automation_messages.h"
17 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
18 18
19 // A common interface supported by all the browser specific ChromeFrame 19 // A common interface supported by all the browser specific ChromeFrame
20 // implementations. 20 // implementations.
21 class ChromeFrameDelegate { 21 class ChromeFrameDelegate {
22 public: 22 public:
23 typedef HWND WindowType; 23 typedef HWND WindowType;
24 24
25 virtual WindowType GetWindow() const = 0; 25 virtual WindowType GetWindow() const = 0;
26 virtual void GetBounds(RECT* bounds) = 0; 26 virtual void GetBounds(RECT* bounds) = 0;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const IPC::NavigationInfo& navigation_info) {} 101 const IPC::NavigationInfo& navigation_info) {}
102 virtual void OnNavigationFailed(int tab_handle, int error_code, 102 virtual void OnNavigationFailed(int tab_handle, int error_code,
103 const GURL& gurl) {} 103 const GURL& gurl) {}
104 virtual void OnLoad(int tab_handle, const GURL& url) {} 104 virtual void OnLoad(int tab_handle, const GURL& url) {}
105 virtual void OnMessageFromChromeFrame(int tab_handle, 105 virtual void OnMessageFromChromeFrame(int tab_handle,
106 const std::string& message, 106 const std::string& message,
107 const std::string& origin, 107 const std::string& origin,
108 const std::string& target) {} 108 const std::string& target) {}
109 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle, 109 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle,
110 int align_flags, 110 int align_flags,
111 const IPC::MiniContextMenuParams& params) {} 111 const IPC::ContextMenuParams& params) {}
112 virtual void OnRequestStart(int tab_handle, int request_id, 112 virtual void OnRequestStart(int tab_handle, int request_id,
113 const IPC::AutomationURLRequest& request) {} 113 const IPC::AutomationURLRequest& request) {}
114 virtual void OnRequestRead(int tab_handle, int request_id, 114 virtual void OnRequestRead(int tab_handle, int request_id,
115 int bytes_to_read) {} 115 int bytes_to_read) {}
116 virtual void OnRequestEnd(int tab_handle, int request_id, 116 virtual void OnRequestEnd(int tab_handle, int request_id,
117 const URLRequestStatus& status) {} 117 const URLRequestStatus& status) {}
118 virtual void OnDownloadRequestInHost(int tab_handle, int request_id) {} 118 virtual void OnDownloadRequestInHost(int tab_handle, int request_id) {}
119 virtual void OnSetCookieAsync(int tab_handle, const GURL& url, 119 virtual void OnSetCookieAsync(int tab_handle, const GURL& url,
120 const std::string& cookie) {} 120 const std::string& cookie) {}
121 virtual void OnAttachExternalTab(int tab_handle, 121 virtual void OnAttachExternalTab(int tab_handle,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 return false; 208 return false;
209 } 209 }
210 210
211 Lock lock_; 211 Lock lock_;
212 std::queue<Task*> pending_tasks_; 212 std::queue<Task*> pending_tasks_;
213 }; 213 };
214 214
215 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ 215 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_activex_base.h ('k') | chrome_frame/chrome_frame_npapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698