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

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

Issue 228483003: Remove most content-level dependencies from TranslateManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 8 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 | Annotate | Revision Log
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 "components/translate/core/browser/translate_driver.h" 8 #include "components/translate/core/browser/translate_driver.h"
9 9
10 #include "components/translate/core/browser/language_state.h" 10 #include "components/translate/core/browser/language_state.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // TranslateDriver methods. 44 // TranslateDriver methods.
45 virtual void OnIsPageTranslatedChanged() OVERRIDE; 45 virtual void OnIsPageTranslatedChanged() OVERRIDE;
46 virtual void OnTranslateEnabledChanged() OVERRIDE; 46 virtual void OnTranslateEnabledChanged() OVERRIDE;
47 virtual bool IsLinkNavigation() OVERRIDE; 47 virtual bool IsLinkNavigation() OVERRIDE;
48 virtual LanguageState& GetLanguageState() OVERRIDE; 48 virtual LanguageState& GetLanguageState() OVERRIDE;
49 virtual void TranslatePage(const std::string& translate_script, 49 virtual void TranslatePage(const std::string& translate_script,
50 const std::string& source_lang, 50 const std::string& source_lang,
51 const std::string& target_lang) OVERRIDE; 51 const std::string& target_lang) OVERRIDE;
52 virtual void RevertTranslation() OVERRIDE; 52 virtual void RevertTranslation() OVERRIDE;
53 virtual bool IsOffTheRecord() OVERRIDE; 53 virtual bool IsOffTheRecord() OVERRIDE;
54 virtual const std::string& GetContentsMimeType() OVERRIDE;
55 virtual const GURL& GetLastCommittedURL() OVERRIDE;
56 virtual const GURL& GetActiveURL() OVERRIDE;
57 virtual const GURL& GetVisibleURL() OVERRIDE;
58 virtual bool HasCurrentPage() OVERRIDE;
59 virtual int GetCurrentPageID() OVERRIDE;
54 60
55 private: 61 private:
56 // The navigation controller of the tab we are associated with. 62 // The navigation controller of the tab we are associated with.
57 content::NavigationController* navigation_controller_; 63 content::NavigationController* navigation_controller_;
58 64
59 LanguageState language_state_; 65 LanguageState language_state_;
60 Observer* observer_; 66 Observer* observer_;
61 67
62 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); 68 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver);
63 }; 69 };
64 70
65 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 71 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698