OLD | NEW |
(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_ |
OLD | NEW |