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

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

Issue 1851093005: Remove content/child/npapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_combined_01_02
Patch Set: rebase Created 4 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_RESOURCE_CLIENT_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12
13 class GURL;
14
15 namespace content {
16
17 // Simpler version of ResourceHandleClient that lends itself to proxying.
18 class WebPluginResourceClient {
19 public:
20 virtual ~WebPluginResourceClient() {}
21
22 virtual void WillSendRequest(const GURL& url, int http_status_code) = 0;
23 // The request_is_seekable parameter indicates whether byte range requests
24 // can be issued for the underlying stream.
25 virtual void DidReceiveResponse(const std::string& mime_type,
26 const std::string& headers,
27 uint32_t expected_length,
28 uint32_t last_modified,
29 bool request_is_seekable) = 0;
30 virtual void DidReceiveData(const char* buffer, int length,
31 int data_offset) = 0;
32 // The resource ids passed here ensures that data for range requests
33 // is cleared. This applies for seekable streams.
34 virtual void DidFinishLoading(unsigned long resource_id) = 0;
35 virtual void DidFail(unsigned long resource_id) = 0;
36 virtual int ResourceId() = 0;
37 // Tells this object that it will get responses from multiple resources.
38 // This is necessary since the plugin process uses a single instance of
39 // PluginStreamUrl object for multiple range requests.
40 virtual void AddRangeRequestResourceId(unsigned long resource_id) { }
41 };
42
43 } // namespace content
44
45 #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_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698