| 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 <stack> | 5 #include <stack> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual void OnCacheSelected( | 37 virtual void OnCacheSelected( |
| 38 int host_id, const appcache::AppCacheInfo& info) OVERRIDE {} | 38 int host_id, const appcache::AppCacheInfo& info) OVERRIDE {} |
| 39 | 39 |
| 40 virtual void OnStatusChanged(const std::vector<int>& host_ids, | 40 virtual void OnStatusChanged(const std::vector<int>& host_ids, |
| 41 appcache::Status status) OVERRIDE {} | 41 appcache::Status status) OVERRIDE {} |
| 42 | 42 |
| 43 virtual void OnEventRaised(const std::vector<int>& host_ids, | 43 virtual void OnEventRaised(const std::vector<int>& host_ids, |
| 44 appcache::EventID event_id) OVERRIDE {} | 44 appcache::EventID event_id) OVERRIDE {} |
| 45 | 45 |
| 46 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, | 46 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, |
| 47 const std::string& message) OVERRIDE {} | 47 const std::string& message, |
| 48 appcache::ErrorReason reason, |
| 49 const GURL& url, |
| 50 int status) OVERRIDE {} |
| 48 | 51 |
| 49 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, | 52 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, |
| 50 const GURL& url, | 53 const GURL& url, |
| 51 int num_total, | 54 int num_total, |
| 52 int num_complete) OVERRIDE { | 55 int num_complete) OVERRIDE { |
| 53 } | 56 } |
| 54 | 57 |
| 55 virtual void OnLogMessage(int host_id, | 58 virtual void OnLogMessage(int host_id, |
| 56 appcache::LogLevel log_level, | 59 appcache::LogLevel log_level, |
| 57 const std::string& message) OVERRIDE { | 60 const std::string& message) OVERRIDE { |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 967 |
| 965 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { | 968 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { |
| 966 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); | 969 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); |
| 967 } | 970 } |
| 968 | 971 |
| 969 TEST_F(AppCacheRequestHandlerTest, MainResource_Blocked) { | 972 TEST_F(AppCacheRequestHandlerTest, MainResource_Blocked) { |
| 970 RunTestOnIOThread(&AppCacheRequestHandlerTest::MainResource_Blocked); | 973 RunTestOnIOThread(&AppCacheRequestHandlerTest::MainResource_Blocked); |
| 971 } | 974 } |
| 972 | 975 |
| 973 } // namespace appcache | 976 } // namespace appcache |
| OLD | NEW |