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

Side by Side Diff: content/shell/shell_resource_dispatcher_host_delegate.h

Issue 10820007: Move all the layout tests that ran under browser_tests to run under content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 4 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 CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 7
8 #include "base/callback.h"
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "content/public/browser/resource_dispatcher_host_delegate.h" 10 #include "content/public/browser/resource_dispatcher_host_delegate.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 class ShellResourceDispatcherHostDelegate 14 class ShellResourceDispatcherHostDelegate
14 : public ResourceDispatcherHostDelegate { 15 : public ResourceDispatcherHostDelegate {
15 public: 16 public:
16 ShellResourceDispatcherHostDelegate(); 17 ShellResourceDispatcherHostDelegate();
17 virtual ~ShellResourceDispatcherHostDelegate(); 18 virtual ~ShellResourceDispatcherHostDelegate();
18 19
19 // ResourceDispatcherHostDelegate implementation. 20 // ResourceDispatcherHostDelegate implementation.
20 virtual bool AcceptAuthRequest(net::URLRequest* request, 21 virtual bool AcceptAuthRequest(net::URLRequest* request,
21 net::AuthChallengeInfo* auth_info) OVERRIDE; 22 net::AuthChallengeInfo* auth_info) OVERRIDE;
22 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 23 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
23 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; 24 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE;
24 25
26 // Used for content_browsertests.
27 void set_login_request_callback(
28 base::Callback<void()> login_request_callback) {
29 login_request_callback_ = login_request_callback;
30 }
31
25 private: 32 private:
33 base::Callback<void()> login_request_callback_;
34
26 DISALLOW_COPY_AND_ASSIGN(ShellResourceDispatcherHostDelegate); 35 DISALLOW_COPY_AND_ASSIGN(ShellResourceDispatcherHostDelegate);
27 }; 36 };
28 37
29 } // namespace content 38 } // namespace content
30 39
31 #endif // CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 40 #endif // CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698