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

Side by Side Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 525793002: Make WebContentsObserver::web_contents() public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 6 years, 3 months 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/content/browser/content_autofill_driver.h" 5 #include "components/autofill/content/browser/content_autofill_driver.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "components/autofill/content/common/autofill_messages.h" 9 #include "components/autofill/content/common/autofill_messages.h"
10 #include "components/autofill/core/browser/autofill_client.h" 10 #include "components/autofill/core/browser/autofill_client.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ContentAutofillDriver::~ContentAutofillDriver() {} 70 ContentAutofillDriver::~ContentAutofillDriver() {}
71 71
72 bool ContentAutofillDriver::IsOffTheRecord() const { 72 bool ContentAutofillDriver::IsOffTheRecord() const {
73 return web_contents()->GetBrowserContext()->IsOffTheRecord(); 73 return web_contents()->GetBrowserContext()->IsOffTheRecord();
74 } 74 }
75 75
76 net::URLRequestContextGetter* ContentAutofillDriver::GetURLRequestContext() { 76 net::URLRequestContextGetter* ContentAutofillDriver::GetURLRequestContext() {
77 return web_contents()->GetBrowserContext()->GetRequestContext(); 77 return web_contents()->GetBrowserContext()->GetRequestContext();
78 } 78 }
79 79
80 content::WebContents* ContentAutofillDriver::GetWebContents() {
81 return web_contents();
82 }
83
84 base::SequencedWorkerPool* ContentAutofillDriver::GetBlockingPool() { 80 base::SequencedWorkerPool* ContentAutofillDriver::GetBlockingPool() {
85 return content::BrowserThread::GetBlockingPool(); 81 return content::BrowserThread::GetBlockingPool();
86 } 82 }
87 83
88 bool ContentAutofillDriver::RendererIsAvailable() { 84 bool ContentAutofillDriver::RendererIsAvailable() {
89 return (web_contents()->GetRenderViewHost() != NULL); 85 return (web_contents()->GetRenderViewHost() != NULL);
90 } 86 }
91 87
92 void ContentAutofillDriver::SendFormDataToRenderer( 88 void ContentAutofillDriver::SendFormDataToRenderer(
93 int query_id, 89 int query_id,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void ContentAutofillDriver::NavigationEntryCommitted( 226 void ContentAutofillDriver::NavigationEntryCommitted(
231 const content::LoadCommittedDetails& load_details) { 227 const content::LoadCommittedDetails& load_details) {
232 autofill_manager_->client()->HideAutofillPopup(); 228 autofill_manager_->client()->HideAutofillPopup();
233 } 229 }
234 230
235 void ContentAutofillDriver::WasHidden() { 231 void ContentAutofillDriver::WasHidden() {
236 autofill_manager_->client()->HideAutofillPopup(); 232 autofill_manager_->client()->HideAutofillPopup();
237 } 233 }
238 234
239 } // namespace autofill 235 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698