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

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: Send URLRequest instead of extra params 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void Resume() OVERRIDE; 47 virtual void Resume() OVERRIDE;
48 virtual void Cancel() OVERRIDE; 48 virtual void Cancel() OVERRIDE;
49 virtual void CancelAndIgnore() OVERRIDE; 49 virtual void CancelAndIgnore() OVERRIDE;
50 virtual void CancelWithError(int error_code) OVERRIDE; 50 virtual void CancelWithError(int error_code) OVERRIDE;
51 51
52 bool ProcessResponse(bool* defer); 52 bool ProcessResponse(bool* defer);
53 53
54 bool ShouldSniffContent(); 54 bool ShouldSniffContent();
55 bool DetermineMimeType(); 55 bool DetermineMimeType();
56 bool SelectNextHandler(bool* defer); 56 bool SelectNextHandler(bool* defer);
57 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler); 57 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler,
58 const std::string& payload_for_old_handler);
58 59
59 bool ReplayReadCompleted(bool* defer); 60 bool ReplayReadCompleted(bool* defer);
60 void CallReplayReadCompleted(); 61 void CallReplayReadCompleted();
61 62
62 bool MustDownload(); 63 bool MustDownload();
63 bool HasSupportingPlugin(bool* is_stale); 64 bool HasSupportingPlugin(bool* is_stale);
64 65
65 // Copies data from |read_buffer_| to |next_handler_|. 66 // Copies data from |read_buffer_| to |next_handler_|.
66 bool CopyReadBufferToNextHandler(); 67 bool CopyReadBufferToNextHandler();
67 68
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 bool must_download_is_set_; 101 bool must_download_is_set_;
101 102
102 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_; 103 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); 105 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler);
105 }; 106 };
106 107
107 } // namespace content 108 } // namespace content
108 109
109 #endif // CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ 110 #endif // CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698