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

Side by Side Diff: chrome/renderer/translate/translate_helper.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ 5 #ifndef CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_
6 #define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ 6 #define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // notifies the browser accordingly. If the translation has not terminated, 135 // notifies the browser accordingly. If the translation has not terminated,
136 // posts a task to check again later. 136 // posts a task to check again later.
137 void CheckTranslateStatus(int page_seq_no); 137 void CheckTranslateStatus(int page_seq_no);
138 138
139 // Called by TranslatePage to do the actual translation. |count| is used to 139 // Called by TranslatePage to do the actual translation. |count| is used to
140 // limit the number of retries. 140 // limit the number of retries.
141 void TranslatePageImpl(int page_seq_no, int count); 141 void TranslatePageImpl(int page_seq_no, int count);
142 142
143 // Sends a message to the browser to notify it that the translation failed 143 // Sends a message to the browser to notify it that the translation failed
144 // with |error|. 144 // with |error|.
145 void NotifyBrowserTranslationFailed(TranslateErrors::Type error); 145 void NotifyBrowserTranslationFailed(translate::TranslateErrors::Type error);
146 146
147 // Convenience method to access the main frame. Can return NULL, typically 147 // Convenience method to access the main frame. Can return NULL, typically
148 // if the page is being closed. 148 // if the page is being closed.
149 blink::WebFrame* GetMainFrame(); 149 blink::WebFrame* GetMainFrame();
150 150
151 // Do not ask for CLD data any more. 151 // Do not ask for CLD data any more.
152 void CancelCldDataPolling(); 152 void CancelCldDataPolling();
153 153
154 // Invoked when PageCaptured is called prior to obtaining CLD data. This 154 // Invoked when PageCaptured is called prior to obtaining CLD data. This
155 // method stores the page ID into deferred_page_id_ and COPIES the contents 155 // method stores the page ID into deferred_page_id_ and COPIES the contents
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 int deferred_page_seq_no_; 201 int deferred_page_seq_no_;
202 202
203 // The contents of the page most recently reported to PageCaptured if 203 // The contents of the page most recently reported to PageCaptured if
204 // deferred_page_capture_ is true. 204 // deferred_page_capture_ is true.
205 base::string16 deferred_contents_; 205 base::string16 deferred_contents_;
206 206
207 DISALLOW_COPY_AND_ASSIGN(TranslateHelper); 207 DISALLOW_COPY_AND_ASSIGN(TranslateHelper);
208 }; 208 };
209 209
210 #endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ 210 #endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698