OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // CloudPrintURLFetcher::Delegate | 78 // CloudPrintURLFetcher::Delegate |
79 virtual CloudPrintURLFetcher::ResponseAction HandleRawResponse( | 79 virtual CloudPrintURLFetcher::ResponseAction HandleRawResponse( |
80 const content::URLFetcher* source, | 80 const content::URLFetcher* source, |
81 const GURL& url, | 81 const GURL& url, |
82 const net::URLRequestStatus& status, | 82 const net::URLRequestStatus& status, |
83 int response_code, | 83 int response_code, |
84 const net::ResponseCookies& cookies, | 84 const net::ResponseCookies& cookies, |
85 const std::string& data); | 85 const std::string& data); |
86 | 86 |
87 virtual void OnRequestAuthError() { | 87 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() { |
88 ADD_FAILURE(); | 88 ADD_FAILURE(); |
| 89 return CloudPrintURLFetcher::STOP_PROCESSING; |
| 90 } |
| 91 |
| 92 virtual std::string GetAuthHeader() { |
| 93 return std::string(); |
89 } | 94 } |
90 | 95 |
91 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() { | 96 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() { |
92 return io_message_loop_proxy_; | 97 return io_message_loop_proxy_; |
93 } | 98 } |
94 | 99 |
95 protected: | 100 protected: |
96 virtual void SetUp() { | 101 virtual void SetUp() { |
97 testing::Test::SetUp(); | 102 testing::Test::SetUp(); |
98 | 103 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 manager->OverrideEntryForTests(url, entry); | 360 manager->OverrideEntryForTests(url, entry); |
356 | 361 |
357 CreateFetcher(url, 11); | 362 CreateFetcher(url, 11); |
358 | 363 |
359 MessageLoop::current()->Run(); | 364 MessageLoop::current()->Run(); |
360 | 365 |
361 net::URLRequestThrottlerManager::GetInstance()->EraseEntryForTests(url); | 366 net::URLRequestThrottlerManager::GetInstance()->EraseEntryForTests(url); |
362 } | 367 } |
363 | 368 |
364 } // namespace. | 369 } // namespace. |
OLD | NEW |