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

Side by Side Diff: chrome_frame/external_tab.h

Issue 6056007: net: Add namespace net to the remaining files under url_request directory. (Closed)
Patch Set: chromeos fixes Created 9 years, 11 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 | « chrome_frame/chrome_frame_delegate.h ('k') | chrome_frame/npapi_url_request.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_EXTERNAL_TAB_H_ 5 #ifndef CHROME_FRAME_EXTERNAL_TAB_H_
6 #define CHROME_FRAME_EXTERNAL_TAB_H_ 6 #define CHROME_FRAME_EXTERNAL_TAB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <atlbase.h> 10 #include <atlbase.h>
11 #include <atlwin.h> 11 #include <atlwin.h>
12 #include <vector> 12 #include <vector>
13 #include <string> 13 #include <string>
14 #include "base/scoped_comptr_win.h" 14 #include "base/scoped_comptr_win.h"
15 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/common/automation_constants.h" 17 #include "chrome/common/automation_constants.h"
18 #include "chrome/common/page_zoom.h" 18 #include "chrome/common/page_zoom.h"
19 #include "chrome_frame/cfproxy.h" 19 #include "chrome_frame/cfproxy.h"
20 #include "chrome_frame/task_marshaller.h" 20 #include "chrome_frame/task_marshaller.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 22
23 class Task; 23 class Task;
24 class CancelableTask; 24 class CancelableTask;
25
25 namespace base { 26 namespace base {
26 class TimeDelta; 27 class TimeDelta;
27 class WaitableEvent; 28 class WaitableEvent;
28 } 29 }
29 30
30 namespace IPC { 31 namespace IPC {
31 struct NavigationInfo; 32 struct NavigationInfo;
32 struct MiniContextMenuParams; 33 struct MiniContextMenuParams;
33 } 34 }
34 35
35 // This is the delegate/callback interface that has to be implemented 36 // This is the delegate/callback interface that has to be implemented
36 // by the customers of ExternalTabProxy class. 37 // by the customers of ExternalTabProxy class.
37 class UIDelegate { 38 class UIDelegate {
38 public: 39 public:
39 virtual void OnNavigationStateChanged( 40 virtual void OnNavigationStateChanged(
40 int flags, const NavigationInfo& nav_info) = 0; 41 int flags, const NavigationInfo& nav_info) = 0;
41 virtual void OnUpdateTargetUrl(const std::wstring& new_target_url) = 0; 42 virtual void OnUpdateTargetUrl(const std::wstring& new_target_url) = 0;
42 virtual void OnExtensionInstalled(const FilePath& path, void* user_data, 43 virtual void OnExtensionInstalled(const FilePath& path, void* user_data,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 enum AutomationMsg_ExtensionResponseValues res, SyncMessageContext* ctx); 144 enum AutomationMsg_ExtensionResponseValues res, SyncMessageContext* ctx);
144 virtual void Completed_LoadExpandedExtension(bool success, 145 virtual void Completed_LoadExpandedExtension(bool success,
145 enum AutomationMsg_ExtensionResponseValues res, SyncMessageContext* ctx); 146 enum AutomationMsg_ExtensionResponseValues res, SyncMessageContext* ctx);
146 virtual void Completed_GetEnabledExtensions(bool success, 147 virtual void Completed_GetEnabledExtensions(bool success,
147 const std::vector<FilePath>* extensions); 148 const std::vector<FilePath>* extensions);
148 149
149 // Network requests from Chrome. 150 // Network requests from Chrome.
150 virtual void OnNetwork_Start( 151 virtual void OnNetwork_Start(
151 int request_id, const AutomationURLRequest& request_info); 152 int request_id, const AutomationURLRequest& request_info);
152 virtual void OnNetwork_Read(int request_id, int bytes_to_read); 153 virtual void OnNetwork_Read(int request_id, int bytes_to_read);
153 virtual void OnNetwork_End(int request_id, const URLRequestStatus& s); 154 virtual void OnNetwork_End(int request_id, const net::URLRequestStatus& s);
154 virtual void OnNetwork_DownloadInHost(int request_id); 155 virtual void OnNetwork_DownloadInHost(int request_id);
155 virtual void OnGetCookies(const GURL& url, int cookie_id); 156 virtual void OnGetCookies(const GURL& url, int cookie_id);
156 virtual void OnSetCookie(const GURL& url, const std::string& cookie); 157 virtual void OnSetCookie(const GURL& url, const std::string& cookie);
157 158
158 // Navigation progress notifications. 159 // Navigation progress notifications.
159 virtual void OnNavigationStateChanged( 160 virtual void OnNavigationStateChanged(
160 int flags, const NavigationInfo& nav_info); 161 int flags, const NavigationInfo& nav_info);
161 virtual void OnUpdateTargetUrl(const std::wstring& url); 162 virtual void OnUpdateTargetUrl(const std::wstring& url);
162 virtual void OnNavigationFailed(int error_code, const GURL& gurl); 163 virtual void OnNavigationFailed(int error_code, const GURL& gurl);
163 virtual void OnDidNavigate(const NavigationInfo& navigation_info); 164 virtual void OnDidNavigate(const NavigationInfo& navigation_info);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 GURL url; 223 GURL url;
223 GURL referrer; 224 GURL referrer;
224 void Set(const GURL& gurl, const GURL& ref) { 225 void Set(const GURL& gurl, const GURL& ref) {
225 url = gurl; 226 url = gurl;
226 referrer = ref; 227 referrer = ref;
227 } 228 }
228 } pending_navigation_; 229 } pending_navigation_;
229 }; 230 };
230 231
231 #endif // CHROME_FRAME_EXTERNAL_TAB_H_ 232 #endif // CHROME_FRAME_EXTERNAL_TAB_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_delegate.h ('k') | chrome_frame/npapi_url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698