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

Side by Side Diff: content/child/npapi/webplugin_resource_client.h

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_ 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_ 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 const std::string& headers, 25 const std::string& headers,
26 uint32 expected_length, 26 uint32 expected_length,
27 uint32 last_modified, 27 uint32 last_modified,
28 bool request_is_seekable) = 0; 28 bool request_is_seekable) = 0;
29 virtual void DidReceiveData(const char* buffer, int length, 29 virtual void DidReceiveData(const char* buffer, int length,
30 int data_offset) = 0; 30 int data_offset) = 0;
31 // The resource ids passed here ensures that data for range requests 31 // The resource ids passed here ensures that data for range requests
32 // is cleared. This applies for seekable streams. 32 // is cleared. This applies for seekable streams.
33 virtual void DidFinishLoading(unsigned long resource_id) = 0; 33 virtual void DidFinishLoading(unsigned long resource_id) = 0;
34 virtual void DidFail(unsigned long resource_id) = 0; 34 virtual void DidFail(unsigned long resource_id) = 0;
35 virtual bool IsMultiByteResponseExpected() = 0;
36 virtual int ResourceId() = 0; 35 virtual int ResourceId() = 0;
37 // Tells this object that it will get responses from multiple resources. 36 // Tells this object that it will get responses from multiple resources.
38 // This is necessary since the plugin process uses a single instance of 37 // This is necessary since the plugin process uses a single instance of
39 // PluginStreamUrl object for multiple range requests. 38 // PluginStreamUrl object for multiple range requests.
40 virtual void AddRangeRequestResourceId(unsigned long resource_id) { } 39 virtual void AddRangeRequestResourceId(unsigned long resource_id) { }
41 }; 40 };
42 41
43 } // namespace content 42 } // namespace content
44 43
45 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_ 44 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698