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

Side by Side Diff: components/offline_pages/offline_page_model.h

Issue 1969233002: [OfflinePages] Make website settings popup rely on asynchronous API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving code review comments and running git cl format Created 4 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
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_bridge.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFLINE_PAGE_MODEL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const ClientId& client_id) = 0; 86 const ClientId& client_id) = 0;
87 87
88 protected: 88 protected:
89 virtual ~Observer() {} 89 virtual ~Observer() {}
90 }; 90 };
91 91
92 using CheckPagesExistOfflineResult = 92 using CheckPagesExistOfflineResult =
93 offline_pages::CheckPagesExistOfflineResult; 93 offline_pages::CheckPagesExistOfflineResult;
94 using MultipleOfflinePageItemResult = 94 using MultipleOfflinePageItemResult =
95 offline_pages::MultipleOfflinePageItemResult; 95 offline_pages::MultipleOfflinePageItemResult;
96 using SingleOfflinePageItemResult =
97 offline_pages::SingleOfflinePageItemResult;
96 98
97 //using DeletePageCallback = offline_pages::DeletePageCallback; 99 //using DeletePageCallback = offline_pages::DeletePageCallback;
98 using DeletePageResult = offline_pages::DeletePageResult; 100 using DeletePageResult = offline_pages::DeletePageResult;
99 using SavePageResult = offline_pages::SavePageResult; 101 using SavePageResult = offline_pages::SavePageResult;
100 102
101 // Generates a new offline id 103 // Generates a new offline id
102 static int64_t GenerateOfflineId(); 104 static int64_t GenerateOfflineId();
103 105
104 // Returns true if an offline copy can be saved for the given URL. 106 // Returns true if an offline copy can be saved for the given URL.
105 static bool CanSavePage(const GURL& url); 107 static bool CanSavePage(const GURL& url);
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 std::unique_ptr<OfflinePageStorageManager> storage_manager_; 370 std::unique_ptr<OfflinePageStorageManager> storage_manager_;
369 371
370 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; 372 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_;
371 373
372 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); 374 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel);
373 }; 375 };
374 376
375 } // namespace offline_pages 377 } // namespace offline_pages
376 378
377 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 379 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698