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

Side by Side Diff: webkit/glue/ftp_directory_listing_response_delegate.h

Issue 20003004: reland crrev.com/212927 Move webkitplatformsupport_impl and related from glue to child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & allocator dep for components_unittests in shared_library2 Created 7 years, 5 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
« no previous file with comments | « webkit/common/webkit_common.gyp ('k') | webkit/glue/ftp_directory_listing_response_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 // A delegate class of WebURLLoaderImpl that handles text/vnd.chromium.ftp-dir
6 // data.
7
8 #ifndef WEBKIT_GLUE_FTP_DIRECTORY_LISTING_RESPONSE_DELEGATE_H_
9 #define WEBKIT_GLUE_FTP_DIRECTORY_LISTING_RESPONSE_DELEGATE_H_
10
11 #include <string>
12
13 #include "base/basictypes.h"
14 #include "third_party/WebKit/public/platform/WebURLResponse.h"
15
16 namespace WebKit {
17 class WebURLLoader;
18 class WebURLLoaderClient;
19 }
20
21 class GURL;
22
23 namespace webkit_glue {
24
25 class FtpDirectoryListingResponseDelegate {
26 public:
27 FtpDirectoryListingResponseDelegate(WebKit::WebURLLoaderClient* client,
28 WebKit::WebURLLoader* loader,
29 const WebKit::WebURLResponse& response);
30
31 // Passed through from ResourceHandleInternal
32 void OnReceivedData(const char* data, int data_len);
33 void OnCompletedRequest();
34
35 private:
36 void Init(const GURL& response_url);
37
38 void SendDataToClient(const std::string& data);
39
40 // Pointers to the client and associated loader so we can make callbacks as
41 // we parse pieces of data.
42 WebKit::WebURLLoaderClient* client_;
43 WebKit::WebURLLoader* loader_;
44
45 // Buffer for data received from the network.
46 std::string buffer_;
47
48 DISALLOW_COPY_AND_ASSIGN(FtpDirectoryListingResponseDelegate);
49 };
50
51 } // namespace webkit_glue
52
53 #endif // WEBKIT_GLUE_FTP_DIRECTORY_LISTING_RESPONSE_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/common/webkit_common.gyp ('k') | webkit/glue/ftp_directory_listing_response_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698