| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/public/common/renderer_preferences.h" | 42 #include "content/public/common/renderer_preferences.h" |
| 43 #include "content/public/common/resource_type.h" | 43 #include "content/public/common/resource_type.h" |
| 44 #include "content/public/common/three_d_api_types.h" | 44 #include "content/public/common/three_d_api_types.h" |
| 45 #include "net/base/load_states.h" | 45 #include "net/base/load_states.h" |
| 46 #include "net/http/http_response_headers.h" | 46 #include "net/http/http_response_headers.h" |
| 47 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 47 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 48 #include "ui/base/page_transition_types.h" | 48 #include "ui/base/page_transition_types.h" |
| 49 #include "ui/gfx/geometry/rect_f.h" | 49 #include "ui/gfx/geometry/rect_f.h" |
| 50 #include "ui/gfx/geometry/size.h" | 50 #include "ui/gfx/geometry/size.h" |
| 51 | 51 |
| 52 #if defined(OS_ANDROID) |
| 53 #include "ui/touch_selection/touch_handle.h" |
| 54 #endif |
| 55 |
| 52 struct ViewHostMsg_DateTimeDialogValue_Params; | 56 struct ViewHostMsg_DateTimeDialogValue_Params; |
| 53 | 57 |
| 54 namespace content { | 58 namespace content { |
| 55 class BrowserPluginEmbedder; | 59 class BrowserPluginEmbedder; |
| 56 class BrowserPluginGuest; | 60 class BrowserPluginGuest; |
| 57 class DateTimeChooserAndroid; | 61 class DateTimeChooserAndroid; |
| 58 class DownloadItem; | 62 class DownloadItem; |
| 59 class FindRequestManager; | 63 class FindRequestManager; |
| 60 class InterstitialPageImpl; | 64 class InterstitialPageImpl; |
| 61 class JavaScriptDialogManager; | 65 class JavaScriptDialogManager; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 void OnMediaSessionStateChanged(); | 399 void OnMediaSessionStateChanged(); |
| 396 void ResumeMediaSession() override; | 400 void ResumeMediaSession() override; |
| 397 void SuspendMediaSession() override; | 401 void SuspendMediaSession() override; |
| 398 void StopMediaSession() override; | 402 void StopMediaSession() override; |
| 399 | 403 |
| 400 #if defined(OS_ANDROID) | 404 #if defined(OS_ANDROID) |
| 401 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 405 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 402 virtual WebContentsAndroid* GetWebContentsAndroid(); | 406 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 403 void ActivateNearestFindResult(float x, float y) override; | 407 void ActivateNearestFindResult(float x, float y) override; |
| 404 void RequestFindMatchRects(int current_version) override; | 408 void RequestFindMatchRects(int current_version) override; |
| 409 ui::TouchHandleDrawable* CreateDrawable(); |
| 405 #elif defined(OS_MACOSX) | 410 #elif defined(OS_MACOSX) |
| 406 void SetAllowOtherViews(bool allow) override; | 411 void SetAllowOtherViews(bool allow) override; |
| 407 bool GetAllowOtherViews() override; | 412 bool GetAllowOtherViews() override; |
| 408 #endif | 413 #endif |
| 409 | 414 |
| 410 // Returns true if this is a secure page which has displayed content | 415 // Returns true if this is a secure page which has displayed content |
| 411 // loaded over insecure HTTP. | 416 // loaded over insecure HTTP. |
| 412 bool DisplayedInsecureContent() const; | 417 bool DisplayedInsecureContent() const; |
| 413 | 418 |
| 414 // Returns true if this page has displayed content loaded over HTTPS | 419 // Returns true if this page has displayed content loaded over HTTPS |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 // Adds/removes a callback called on creation of each new WebContents. | 1452 // Adds/removes a callback called on creation of each new WebContents. |
| 1448 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1453 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1449 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1454 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1450 | 1455 |
| 1451 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1456 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1452 }; | 1457 }; |
| 1453 | 1458 |
| 1454 } // namespace content | 1459 } // namespace content |
| 1455 | 1460 |
| 1456 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1461 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |