| OLD | NEW |
| 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 #include "content/browser/loader/resource_scheduler.h" | 5 #include "content/browser/loader/resource_scheduler.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void Resume() OVERRIDE { | 81 virtual void Resume() OVERRIDE { |
| 82 TestRequest::Resume(); | 82 TestRequest::Resume(); |
| 83 request_to_cancel_.reset(); | 83 request_to_cancel_.reset(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 scoped_ptr<TestRequest> request_to_cancel_; | 86 scoped_ptr<TestRequest> request_to_cancel_; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 class FakeResourceContext : public ResourceContext { | 89 class FakeResourceContext : public ResourceContext { |
| 90 private: | 90 private: |
| 91 virtual void CreateKeygenHandler( |
| 92 uint32 key_size_in_bits, |
| 93 const std::string& challenge_string, |
| 94 const GURL& url, |
| 95 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) |
| 96 OVERRIDE {} |
| 91 virtual net::HostResolver* GetHostResolver() OVERRIDE { return NULL; } | 97 virtual net::HostResolver* GetHostResolver() OVERRIDE { return NULL; } |
| 92 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { return NULL; } | 98 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { return NULL; } |
| 93 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { return false; } | 99 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { return false; } |
| 94 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { return false; } | 100 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { return false; } |
| 95 }; | 101 }; |
| 96 | 102 |
| 97 class FakeResourceMessageFilter : public ResourceMessageFilter { | 103 class FakeResourceMessageFilter : public ResourceMessageFilter { |
| 98 public: | 104 public: |
| 99 FakeResourceMessageFilter(int child_id) | 105 FakeResourceMessageFilter(int child_id) |
| 100 : ResourceMessageFilter( | 106 : ResourceMessageFilter( |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 http_server_properties_.SetSupportsSpdy( | 533 http_server_properties_.SetSupportsSpdy( |
| 528 net::HostPortPair("spdyhost2", 8080), true); | 534 net::HostPortPair("spdyhost2", 8080), true); |
| 529 ChangeRequestPriority(low2_spdy.get(), net::LOWEST); | 535 ChangeRequestPriority(low2_spdy.get(), net::LOWEST); |
| 530 scoped_ptr<TestRequest> low2(NewRequest("http://host/low", net::LOWEST)); | 536 scoped_ptr<TestRequest> low2(NewRequest("http://host/low", net::LOWEST)); |
| 531 EXPECT_TRUE(low2->started()); | 537 EXPECT_TRUE(low2->started()); |
| 532 } | 538 } |
| 533 | 539 |
| 534 } // unnamed namespace | 540 } // unnamed namespace |
| 535 | 541 |
| 536 } // namespace content | 542 } // namespace content |
| OLD | NEW |