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

Side by Side Diff: components/offline_pages/downloads/download_notifying_observer.h

Issue 2303953002: Rename an Enum to a slightly better name. (Closed)
Patch Set: Merged. Created 4 years, 3 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 COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_ 6 #define COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 24
25 static DownloadNotifyingObserver* GetFromRequestCoordinator( 25 static DownloadNotifyingObserver* GetFromRequestCoordinator(
26 RequestCoordinator* request_coordinator); 26 RequestCoordinator* request_coordinator);
27 static void CreateAndStartObserving( 27 static void CreateAndStartObserving(
28 RequestCoordinator* request_coordinator, 28 RequestCoordinator* request_coordinator,
29 std::unique_ptr<OfflinePageDownloadNotifier> notifier); 29 std::unique_ptr<OfflinePageDownloadNotifier> notifier);
30 30
31 // RequestCoordinator::Observer implementation: 31 // RequestCoordinator::Observer implementation:
32 void OnAdded(const SavePageRequest& request) override; 32 void OnAdded(const SavePageRequest& request) override;
33 void OnChanged(const SavePageRequest& request) override; 33 void OnChanged(const SavePageRequest& request) override;
34 void OnCompleted(const SavePageRequest& request, 34 void OnCompleted(
35 RequestCoordinator::SavePageStatus status) override; 35 const SavePageRequest& request,
36 RequestCoordinator::BackgroundSavePageResult status) override;
36 37
37 private: 38 private:
38 friend class DownloadNotifyingObserverTest; 39 friend class DownloadNotifyingObserverTest;
39 40
40 explicit DownloadNotifyingObserver( 41 explicit DownloadNotifyingObserver(
41 std::unique_ptr<OfflinePageDownloadNotifier> notifier); 42 std::unique_ptr<OfflinePageDownloadNotifier> notifier);
42 43
43 // Used to issue notifications related to save page requests. 44 // Used to issue notifications related to save page requests.
44 std::unique_ptr<OfflinePageDownloadNotifier> notifier_; 45 std::unique_ptr<OfflinePageDownloadNotifier> notifier_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(DownloadNotifyingObserver); 47 DISALLOW_COPY_AND_ASSIGN(DownloadNotifyingObserver);
47 }; 48 };
48 49
49 } // namespace offline_pages 50 } // namespace offline_pages
50 51
51 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_ 52 #endif // COMPONENTS_OFFLINE_PAGES_DOWNLOADS_DOWNLOAD_NOTIFYING_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698