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

Side by Side Diff: components/devtools_bridge/client/web_client.cc

Issue 802293002: Revert of Stub for web-base client for DevTools bridge and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2014 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/devtools_bridge/client/web_client.h"
6 #include "content/public/browser/web_contents.h"
7 #include "content/public/browser/web_contents_delegate.h"
8
9 namespace devtools_bridge {
10
11 namespace {
12
13 class WebClientImpl : public WebClient, private content::WebContentsDelegate {
14 public:
15 WebClientImpl(content::BrowserContext* context, Delegate* delegate);
16
17 private:
18 Delegate* const delegate_;
19 const scoped_ptr<content::WebContents> web_contents_;
20 };
21
22 WebClientImpl::WebClientImpl(content::BrowserContext* context,
23 Delegate* delegate)
24 : delegate_(delegate),
25 web_contents_(content::WebContents::Create(
26 content::WebContents::CreateParams(context))) {
27 web_contents_->SetDelegate(this);
28 }
29
30 } // namespace
31
32 scoped_ptr<WebClient> WebClient::CreateInstance(
33 content::BrowserContext* context, Delegate* delegate) {
34 return make_scoped_ptr(new WebClientImpl(context, delegate));
35 }
36
37 } // namespace devtools_bridge
OLDNEW
« no previous file with comments | « components/devtools_bridge/client/web_client.h ('k') | components/devtools_bridge/test/android/client/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698