Home | History | Annotate | Download | only in glue
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.  Use of this
      2 // source code is governed by a BSD-style license that can be found in the
      3 // LICENSE file.
      4 
      5 #ifndef WEBKIT_GLUE_WEBURLLOADER_IMPL_H_
      6 #define WEBKIT_GLUE_WEBURLLOADER_IMPL_H_
      7 
      8 #include "base/memory/ref_counted.h"
      9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoader.h"
     10 
     11 namespace webkit_glue {
     12 
     13 class WebURLLoaderImpl : public WebKit::WebURLLoader {
     14  public:
     15   WebURLLoaderImpl();
     16   ~WebURLLoaderImpl();
     17 
     18   // WebURLLoader methods:
     19   virtual void loadSynchronously(
     20       const WebKit::WebURLRequest& request,
     21       WebKit::WebURLResponse& response,
     22       WebKit::WebURLError& error,
     23       WebKit::WebData& data);
     24   virtual void loadAsynchronously(
     25       const WebKit::WebURLRequest& request,
     26       WebKit::WebURLLoaderClient* client);
     27   virtual void cancel();
     28   virtual void setDefersLoading(bool value);
     29 
     30  private:
     31   class Context;
     32   scoped_refptr<Context> context_;
     33 };
     34 
     35 }  // namespace webkit_glue
     36 
     37 #endif  // WEBKIT_GLUE_WEBURLLOADER_IMPL_H_
     38