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

Side by Side Diff: components/translate/content/browser/content_translate_driver.h

Issue 600043004: Add render_frame_host to WebContentsObserver::DidNavigateAnyFrame(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual const GURL& GetLastCommittedURL() override; 84 virtual const GURL& GetLastCommittedURL() override;
85 virtual const GURL& GetActiveURL() override; 85 virtual const GURL& GetActiveURL() override;
86 virtual const GURL& GetVisibleURL() override; 86 virtual const GURL& GetVisibleURL() override;
87 virtual bool HasCurrentPage() override; 87 virtual bool HasCurrentPage() override;
88 virtual void OpenUrlInNewTab(const GURL& url) override; 88 virtual void OpenUrlInNewTab(const GURL& url) override;
89 89
90 // content::WebContentsObserver implementation. 90 // content::WebContentsObserver implementation.
91 virtual void NavigationEntryCommitted( 91 virtual void NavigationEntryCommitted(
92 const content::LoadCommittedDetails& load_details) override; 92 const content::LoadCommittedDetails& load_details) override;
93 virtual void DidNavigateAnyFrame( 93 virtual void DidNavigateAnyFrame(
94 content::RenderFrameHost* render_frame_host,
94 const content::LoadCommittedDetails& details, 95 const content::LoadCommittedDetails& details,
95 const content::FrameNavigateParams& params) override; 96 const content::FrameNavigateParams& params) override;
96 virtual bool OnMessageReceived(const IPC::Message& message) override; 97 virtual bool OnMessageReceived(const IPC::Message& message) override;
97 98
98 // IPC handlers. 99 // IPC handlers.
99 void OnTranslateAssignedSequenceNumber(int page_seq_no); 100 void OnTranslateAssignedSequenceNumber(int page_seq_no);
100 void OnLanguageDetermined(const LanguageDetectionDetails& details, 101 void OnLanguageDetermined(const LanguageDetectionDetails& details,
101 bool page_needs_translation); 102 bool page_needs_translation);
102 void OnPageTranslated(const std::string& original_lang, 103 void OnPageTranslated(const std::string& original_lang,
103 const std::string& translated_lang, 104 const std::string& translated_lang,
(...skipping 11 matching lines...) Expand all
115 int max_reload_check_attempts_; 116 int max_reload_check_attempts_;
116 117
117 base::WeakPtrFactory<ContentTranslateDriver> weak_pointer_factory_; 118 base::WeakPtrFactory<ContentTranslateDriver> weak_pointer_factory_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); 120 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver);
120 }; 121 };
121 122
122 } // namespace translate 123 } // namespace translate
123 124
124 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 125 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | components/translate/content/browser/content_translate_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698