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

Side by Side Diff: chrome_frame/test/net/test_automation_provider.h

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 3 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 #ifndef CHROME_FRAME_TEST_NET_TEST_AUTOMATION_PROVIDER_H_ 4 #ifndef CHROME_FRAME_TEST_NET_TEST_AUTOMATION_PROVIDER_H_
5 #define CHROME_FRAME_TEST_NET_TEST_AUTOMATION_PROVIDER_H_ 5 #define CHROME_FRAME_TEST_NET_TEST_AUTOMATION_PROVIDER_H_
6 6
7 #include <string> 7 #include <string>
8 #include "chrome/browser/automation/automation_provider.h" 8 #include "chrome/browser/automation/automation_provider.h"
9 9
10 namespace net { 10 namespace net {
11 class NetworkDelegate;
11 class URLRequest; 12 class URLRequest;
12 class URLRequestJob; 13 class URLRequestJob;
13 } // namespace net 14 } // namespace net
14 15
15 class TestAutomationResourceMessageFilter; 16 class TestAutomationResourceMessageFilter;
16 17
17 // Callback interface for TestAutomationProvider. 18 // Callback interface for TestAutomationProvider.
18 class TestAutomationProviderDelegate { 19 class TestAutomationProviderDelegate {
19 public: 20 public:
20 virtual void OnInitialTabLoaded() = 0; 21 virtual void OnInitialTabLoaded() = 0;
(...skipping 14 matching lines...) Expand all
35 TestAutomationProviderDelegate* delegate); 36 TestAutomationProviderDelegate* delegate);
36 37
37 virtual ~TestAutomationProvider(); 38 virtual ~TestAutomationProvider();
38 39
39 // AutomationProvider overrides. 40 // AutomationProvider overrides.
40 virtual bool OnMessageReceived(const IPC::Message& msg); 41 virtual bool OnMessageReceived(const IPC::Message& msg);
41 virtual bool Send(IPC::Message* msg); 42 virtual bool Send(IPC::Message* msg);
42 43
43 // Protocol factory for handling http/https requests over automation. 44 // Protocol factory for handling http/https requests over automation.
44 static net::URLRequestJob* Factory(net::URLRequest* request, 45 static net::URLRequestJob* Factory(net::URLRequest* request,
46 net::NetworkDelegate* network_delegate,
45 const std::string& scheme); 47 const std::string& scheme);
46 48
47 // Call to instantiate and initialize a new instance of 49 // Call to instantiate and initialize a new instance of
48 // TestAutomationProvider. 50 // TestAutomationProvider.
49 static TestAutomationProvider* NewAutomationProvider( 51 static TestAutomationProvider* NewAutomationProvider(
50 Profile* p, 52 Profile* p,
51 const std::string& channel, 53 const std::string& channel,
52 TestAutomationProviderDelegate* delegate); 54 TestAutomationProviderDelegate* delegate);
53 55
54 protected: 56 protected:
55 virtual std::string GetProtocolVersion(); 57 virtual std::string GetProtocolVersion();
56 58
57 int tab_handle_; 59 int tab_handle_;
58 TestAutomationProviderDelegate* delegate_; 60 TestAutomationProviderDelegate* delegate_;
59 61
60 static TestAutomationProvider* g_provider_instance_; 62 static TestAutomationProvider* g_provider_instance_;
61 }; 63 };
62 64
63 #endif // CHROME_FRAME_TEST_NET_TEST_AUTOMATION_PROVIDER_H_ 65 #endif // CHROME_FRAME_TEST_NET_TEST_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_url_data_manager_backend.cc ('k') | chrome_frame/test/net/test_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698