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

Side by Side Diff: content/browser/loader/buffered_resource_handler.h

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes Created 6 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void Resume() OVERRIDE; 51 virtual void Resume() OVERRIDE;
52 virtual void Cancel() OVERRIDE; 52 virtual void Cancel() OVERRIDE;
53 virtual void CancelAndIgnore() OVERRIDE; 53 virtual void CancelAndIgnore() OVERRIDE;
54 virtual void CancelWithError(int error_code) OVERRIDE; 54 virtual void CancelWithError(int error_code) OVERRIDE;
55 55
56 bool ProcessResponse(bool* defer); 56 bool ProcessResponse(bool* defer);
57 57
58 bool ShouldSniffContent(); 58 bool ShouldSniffContent();
59 bool DetermineMimeType(); 59 bool DetermineMimeType();
60 bool SelectNextHandler(bool* defer); 60 bool SelectNextHandler(bool* defer);
61 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler); 61 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler,
62 const std::string& payload_for_old_handler);
62 63
63 bool ReplayReadCompleted(bool* defer); 64 bool ReplayReadCompleted(bool* defer);
64 void CallReplayReadCompleted(); 65 void CallReplayReadCompleted();
65 66
66 bool MustDownload(); 67 bool MustDownload();
67 bool HasSupportingPlugin(bool* is_stale); 68 bool HasSupportingPlugin(bool* is_stale);
68 69
69 // Copies data from |read_buffer_| to |next_handler_|. 70 // Copies data from |read_buffer_| to |next_handler_|.
70 bool CopyReadBufferToNextHandler(int request_id); 71 bool CopyReadBufferToNextHandler(int request_id);
71 72
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool must_download_is_set_; 105 bool must_download_is_set_;
105 106
106 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_; 107 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); 109 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler);
109 }; 110 };
110 111
111 } // namespace content 112 } // namespace content
112 113
113 #endif // CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ 114 #endif // CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698