OLD | NEW |
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 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // content::WebContentsObserver: | 48 // content::WebContentsObserver: |
49 bool OnMessageReceived(const IPC::Message& message, | 49 bool OnMessageReceived(const IPC::Message& message, |
50 content::RenderFrameHost* render_frame_host) override; | 50 content::RenderFrameHost* render_frame_host) override; |
51 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; | 51 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; |
52 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; | 52 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; |
53 void DidNavigateAnyFrame( | 53 void DidNavigateAnyFrame( |
54 content::RenderFrameHost* render_frame_host, | 54 content::RenderFrameHost* render_frame_host, |
55 const content::LoadCommittedDetails& details, | 55 const content::LoadCommittedDetails& details, |
56 const content::FrameNavigateParams& params) override; | 56 const content::FrameNavigateParams& params) override; |
57 void NavigationEntryCommitted( | 57 void DidFinishNavigation( |
58 const content::LoadCommittedDetails& load_details) override; | 58 content::NavigationHandle* navigation_handle) override; |
59 void WasHidden() override; | 59 void WasHidden() override; |
60 | 60 |
61 static const char kContentAutofillDriverFactoryWebContentsUserDataKey[]; | 61 static const char kContentAutofillDriverFactoryWebContentsUserDataKey[]; |
62 | 62 |
63 protected: | 63 protected: |
64 ContentAutofillDriverFactory( | 64 ContentAutofillDriverFactory( |
65 content::WebContents* web_contents, | 65 content::WebContents* web_contents, |
66 AutofillClient* client, | 66 AutofillClient* client, |
67 const std::string& app_locale, | 67 const std::string& app_locale, |
68 AutofillManager::AutofillDownloadManagerState enable_download_manager); | 68 AutofillManager::AutofillDownloadManagerState enable_download_manager); |
69 ~ContentAutofillDriverFactory() override; | 69 ~ContentAutofillDriverFactory() override; |
70 | 70 |
71 private: | 71 private: |
72 AutofillClient* client_; | 72 AutofillClient* client_; |
73 std::string app_locale_; | 73 std::string app_locale_; |
74 AutofillManager::AutofillDownloadManagerState enable_download_manager_; | 74 AutofillManager::AutofillDownloadManagerState enable_download_manager_; |
75 | 75 |
76 std::map<content::RenderFrameHost*, scoped_ptr<ContentAutofillDriver>> | 76 std::map<content::RenderFrameHost*, scoped_ptr<ContentAutofillDriver>> |
77 frame_driver_map_; | 77 frame_driver_map_; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace autofill | 80 } // namespace autofill |
81 | 81 |
82 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H
_ | 82 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_FACTORY_H
_ |
OLD | NEW |