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 #include "components/offline_pages/content/background_loader/background_loader_c
ontents_stub.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "content/public/browser/web_contents.h" |
| 9 #include "content/public/test/web_contents_tester.h" |
| 10 |
| 11 namespace background_loader { |
| 12 |
| 13 BackgroundLoaderContentsStub::BackgroundLoaderContentsStub( |
| 14 content::BrowserContext* browser_context) |
| 15 : BackgroundLoaderContents(), is_loading_(false) { |
| 16 BackgroundLoaderContents::web_contents_.reset( |
| 17 content::WebContentsTester::CreateTestWebContents(browser_context, NULL)); |
| 18 web_contents_.get()->SetDelegate(this); |
| 19 } |
| 20 |
| 21 BackgroundLoaderContentsStub::~BackgroundLoaderContentsStub() {} |
| 22 |
| 23 void BackgroundLoaderContentsStub::LoadPage(const GURL& url) { |
| 24 is_loading_ = true; |
| 25 } |
| 26 |
| 27 } // namespace background_loader |
OLD | NEW |