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

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

Issue 953793003: Ensuring interception of stream get determined by plugin path before checking mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving Build Errors. Created 5 years, 9 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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // ResourceController implementation: 49 // ResourceController implementation:
50 void Resume() override; 50 void Resume() override;
51 void Cancel() override; 51 void Cancel() override;
52 void CancelAndIgnore() override; 52 void CancelAndIgnore() override;
53 void CancelWithError(int error_code) override; 53 void CancelWithError(int error_code) override;
54 54
55 bool ProcessResponse(bool* defer); 55 bool ProcessResponse(bool* defer);
56 56
57 bool ShouldSniffContent(); 57 bool ShouldSniffContent();
58 bool DetermineMimeType(); 58 bool DetermineMimeType();
59 bool IsHandledByPlugin(bool* defer, bool* cancel_request);
raymes 2015/03/30 01:00:07 this should be request_handled now then
59 bool SelectNextHandler(bool* defer); 60 bool SelectNextHandler(bool* defer);
60 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler, 61 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler,
61 const std::string& payload_for_old_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 68
69 // Copies data from |read_buffer_| to |next_handler_|. 69 // Copies data from |read_buffer_| to |next_handler_|.
70 bool CopyReadBufferToNextHandler(); 70 bool CopyReadBufferToNextHandler();
71 71
72 // Called on the IO thread once the list of plugins has been loaded. 72 // Called on the IO thread once the list of plugins has been loaded.
73 void OnPluginsLoaded(const std::vector<WebPluginInfo>& plugins); 73 void OnPluginsLoaded(const std::vector<WebPluginInfo>& plugins);
74 74
75 enum State { 75 enum State {
76 STATE_STARTING, 76 STATE_STARTING,
77 77
(...skipping 27 matching lines...) Expand all
105 bool must_download_is_set_; 105 bool must_download_is_set_;
106 106
107 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_; 107 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); 109 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler);
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #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