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

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

Issue 2534673002: [Offline pages] Create offliner that uses background loader (Closed)
Patch Set: bleh it works now 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
« no previous file with comments | « components/offline_pages/content/background_loader/background_loader_contents_stub.h ('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
(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
OLDNEW
« no previous file with comments | « components/offline_pages/content/background_loader/background_loader_contents_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698