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

Side by Side Diff: components/offline_pages/core/background/offliner_stub.cc

Issue 2857063002: Add a way to send the resource percentage signal to the RC. (Closed)
Patch Set: Turn off other metrics which might require tab helpers when background loading Created 3 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/offline_pages/core/background/offliner_stub.h" 5 #include "components/offline_pages/core/background/offliner_stub.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "components/offline_pages/core/background/save_page_request.h" 9 #include "components/offline_pages/core/background/save_page_request.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool OfflinerStub::HandleTimeout(int64_t request_id) { 53 bool OfflinerStub::HandleTimeout(int64_t request_id) {
54 if (snapshot_on_last_retry_) { 54 if (snapshot_on_last_retry_) {
55 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, 55 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
56 completion_callback_); 56 completion_callback_);
57 pending_request_.reset(); 57 pending_request_.reset();
58 return true; 58 return true;
59 } 59 }
60 return false; 60 return false;
61 } 61 }
62 62
63 void OfflinerStub::ObserveResourceTracking(ResourceDataType type,
64 int64_t started_count,
65 int64_t completed_count) {}
66
63 } // namespace offline_pages 67 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698