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

Side by Side Diff: chrome/browser/chromeos/gview_request_interceptor.h

Issue 5607004: net: Remove typedef net::URLRequestJob URLRequestJob; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 10 years 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_BROWSER_CHROMEOS_GVIEW_REQUEST_INTERCEPTOR_H__ 5 #ifndef CHROME_BROWSER_CHROMEOS_GVIEW_REQUEST_INTERCEPTOR_H__
6 #define CHROME_BROWSER_CHROMEOS_GVIEW_REQUEST_INTERCEPTOR_H__ 6 #define CHROME_BROWSER_CHROMEOS_GVIEW_REQUEST_INTERCEPTOR_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 10 matching lines...) Expand all
21 class GViewRequestInterceptor : public net::URLRequest::Interceptor { 21 class GViewRequestInterceptor : public net::URLRequest::Interceptor {
22 public: 22 public:
23 GViewRequestInterceptor(); 23 GViewRequestInterceptor();
24 virtual ~GViewRequestInterceptor(); 24 virtual ~GViewRequestInterceptor();
25 25
26 // Always returns NULL because we don't want to attempt a redirect 26 // Always returns NULL because we don't want to attempt a redirect
27 // before seeing the detected mime type of the request. 27 // before seeing the detected mime type of the request.
28 virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request); 28 virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request);
29 29
30 // Determines if the requested document can be viewed by the Google 30 // Determines if the requested document can be viewed by the Google
31 // Document Viewer. If it can, returns a URLRequestJob that 31 // Document Viewer. If it can, returns a net::URLRequestJob that
32 // redirects the browser to the view URL. 32 // redirects the browser to the view URL.
33 virtual net::URLRequestJob* MaybeInterceptResponse(net::URLRequest* request); 33 virtual net::URLRequestJob* MaybeInterceptResponse(net::URLRequest* request);
34 34
35 // Singleton accessor. 35 // Singleton accessor.
36 static net::URLRequest::Interceptor* GetGViewRequestInterceptor(); 36 static net::URLRequest::Interceptor* GetGViewRequestInterceptor();
37 37
38 private: 38 private:
39 // The list of supported mime types. 39 // The list of supported mime types.
40 base::hash_set<std::string> supported_mime_types_; 40 base::hash_set<std::string> supported_mime_types_;
41 }; 41 };
42 42
43 } // namespace chromeos 43 } // namespace chromeos
44 44
45 #endif // CHROME_BROWSER_CHROMEOS_GVIEW_REQUEST_INTERCEPTOR_H__ 45 #endif // CHROME_BROWSER_CHROMEOS_GVIEW_REQUEST_INTERCEPTOR_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698