OLD | NEW |
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_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 public: | 571 public: |
572 ExternalDocumentLoader(); | 572 ExternalDocumentLoader(); |
573 ~ExternalDocumentLoader() override; | 573 ~ExternalDocumentLoader() override; |
574 | 574 |
575 void ReplayReceivedData(WebURLLoaderClient* document_loader); | 575 void ReplayReceivedData(WebURLLoaderClient* document_loader); |
576 | 576 |
577 // blink::WebURLLoaderClient implementation. | 577 // blink::WebURLLoaderClient implementation. |
578 void didReceiveData(blink::WebURLLoader* loader, | 578 void didReceiveData(blink::WebURLLoader* loader, |
579 const char* data, | 579 const char* data, |
580 int data_length, | 580 int data_length, |
581 int encoded_data_length) override; | 581 int encoded_data_length, |
| 582 int encoded_body_length) override; |
582 void didFinishLoading(blink::WebURLLoader* loader, | 583 void didFinishLoading(blink::WebURLLoader* loader, |
583 double finish_time, | 584 double finish_time, |
584 int64_t total_encoded_data_length) override; | 585 int64_t total_encoded_data_length) override; |
585 void didFail(blink::WebURLLoader* loader, | 586 void didFail(blink::WebURLLoader* loader, |
586 const blink::WebURLError& error) override; | 587 const blink::WebURLError& error) override; |
587 | 588 |
588 private: | 589 private: |
589 std::list<std::string> data_; | 590 std::list<std::string> data_; |
590 bool finished_loading_; | 591 bool finished_loading_; |
591 std::unique_ptr<blink::WebURLError> error_; | 592 std::unique_ptr<blink::WebURLError> error_; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 // view change events. | 985 // view change events. |
985 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 986 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
986 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 987 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
987 | 988 |
988 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 989 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
989 }; | 990 }; |
990 | 991 |
991 } // namespace content | 992 } // namespace content |
992 | 993 |
993 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 994 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |