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

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

Issue 2216463002: [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit from Vaclav Created 4 years, 4 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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
11 #include "components/autofill/content/browser/content_autofill_driver_factory.h" 11 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
12 #include "components/autofill/content/common/autofill_messages.h"
13 #include "components/autofill/core/browser/autofill_client.h" 12 #include "components/autofill/core/browser/autofill_client.h"
14 #include "components/autofill/core/browser/autofill_external_delegate.h" 13 #include "components/autofill/core/browser/autofill_external_delegate.h"
15 #include "components/autofill/core/browser/autofill_manager.h" 14 #include "components/autofill/core/browser/autofill_manager.h"
16 #include "components/autofill/core/browser/form_structure.h" 15 #include "components/autofill/core/browser/form_structure.h"
17 #include "components/autofill/core/common/autofill_switches.h" 16 #include "components/autofill/core/common/autofill_switches.h"
18 #include "content/public/browser/browser_context.h" 17 #include "content/public/browser/browser_context.h"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/navigation_controller.h" 19 #include "content/public/browser/navigation_controller.h"
21 #include "content/public/browser/navigation_details.h" 20 #include "content/public/browser/navigation_details.h"
22 #include "content/public/browser/render_frame_host.h" 21 #include "content/public/browser/render_frame_host.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 autofill_manager_ = std::move(manager); 246 autofill_manager_ = std::move(manager);
248 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); 247 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_);
249 } 248 }
250 249
251 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() { 250 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() {
252 GetAutofillAgent()->FirstUserGestureObservedInTab(); 251 GetAutofillAgent()->FirstUserGestureObservedInTab();
253 } 252 }
254 253
255 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() { 254 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() {
256 // Here is a lazy binding, and will not reconnect after connection error. 255 // Here is a lazy binding, and will not reconnect after connection error.
257 if (!mojo_autofill_agent_) { 256 if (!autofill_agent_) {
258 render_frame_host_->GetRemoteInterfaces()->GetInterface( 257 render_frame_host_->GetRemoteInterfaces()->GetInterface(
259 mojo::GetProxy(&mojo_autofill_agent_)); 258 mojo::GetProxy(&autofill_agent_));
260 } 259 }
261 260
262 return mojo_autofill_agent_; 261 return autofill_agent_;
263 } 262 }
264 263
265 } // namespace autofill 264 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698