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

Side by Side Diff: chrome/browser/offline_pages/background_loader_offliner.h

Issue 2903383003: Get network resource usage from ChromeResourceDispatcherHostDelegate (Closed)
Patch Set: CR feedback per FGorski Created 3 years, 6 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 #ifndef CHROME_BROWSER_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ 5 #ifndef CHROME_BROWSER_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_
6 #define CHROME_BROWSER_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ 6 #define CHROME_BROWSER_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Time in ticks of when we start loading the page. 134 // Time in ticks of when we start loading the page.
135 base::TimeTicks load_start_time_; 135 base::TimeTicks load_start_time_;
136 136
137 // Saves loading signals. 137 // Saves loading signals.
138 // TODO(petewil): We will be replacing this with the new snapshot controller. 138 // TODO(petewil): We will be replacing this with the new snapshot controller.
139 base::DictionaryValue signal_data_; 139 base::DictionaryValue signal_data_;
140 140
141 // Callback for cancel. 141 // Callback for cancel.
142 CancelCallback cancel_callback_; 142 CancelCallback cancel_callback_;
143 143
144 // TODO(petewil): Replace with a map of all types
145 int64_t started_count_;
146 int64_t completed_count_;
147
144 base::WeakPtrFactory<BackgroundLoaderOffliner> weak_ptr_factory_; 148 base::WeakPtrFactory<BackgroundLoaderOffliner> weak_ptr_factory_;
145 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderOffliner); 149 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderOffliner);
146 }; 150 };
147 151
148 } // namespace offline_pages 152 } // namespace offline_pages
149 #endif // CHROME_BROWSER_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ 153 #endif // CHROME_BROWSER_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698