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

Unified Diff: components/translate/core/browser/translate_delegate.h

Issue 131463002: Move TranslateURLFetcher to the translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix translate.gypi for real Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/translate/DEPS ('k') | components/translate/core/browser/translate_url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_delegate.h
diff --git a/components/translate/core/browser/translate_delegate.h b/components/translate/core/browser/translate_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e5735c39c7fe855bc3a75993d9b6dfbacfd337a
--- /dev/null
+++ b/components/translate/core/browser/translate_delegate.h
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DELEGATE_H_
+#define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DELEGATE_H_
+
+namespace net {
+class URLRequestContextGetter;
+}
+
+// A concrete instance of TranslateDelegate has to be provided by the embedder
+// of the Translate component.
+class TranslateDelegate {
+ public:
+ //Returns the URL request context in which the Translate component should make
+ //requests.
+ virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
+};
+
+#endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DELEGATE_H_
« no previous file with comments | « components/translate/DEPS ('k') | components/translate/core/browser/translate_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698