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

Side by Side Diff: components/offline_pages/content/background_loader/background_loader_contents_stub.h

Issue 2534673002: [Offline pages] Create offliner that uses background loader (Closed)
Patch Set: Code review responses Created 4 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CON TENTS_STUB_H_
6 #define COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CON TENTS_STUB_H_
7
8 #include "components/offline_pages/content/background_loader/background_loader_c ontents.h"
9
10 namespace content {
11 class BrowserContext;
12 }
13
14 namespace background_loader {
15
16 // Stub BackgroundLoaderContents for testing use.
17 class BackgroundLoaderContentsStub : public BackgroundLoaderContents {
18 public:
19 BackgroundLoaderContentsStub(content::BrowserContext* browser_context);
20 ~BackgroundLoaderContentsStub() override;
21
22 void LoadPage(const GURL& url) override;
23 bool is_loading() const { return is_loading_; }
24
25 private:
26 bool is_loading_;
27 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderContentsStub);
28 };
29
30 } // namespace background_loader
31 #endif // COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_ CONTENTS_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698