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

Side by Side Diff: content/public/browser/web_contents.h

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved download delegate interface to native Created 4 years, 6 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
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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 13 matching lines...) Expand all
24 #include "content/public/browser/web_ui.h" 24 #include "content/public/browser/web_ui.h"
25 #include "content/public/common/stop_find_action.h" 25 #include "content/public/common/stop_find_action.h"
26 #include "ipc/ipc_sender.h" 26 #include "ipc/ipc_sender.h"
27 #include "third_party/skia/include/core/SkColor.h" 27 #include "third_party/skia/include/core/SkColor.h"
28 #include "ui/base/window_open_disposition.h" 28 #include "ui/base/window_open_disposition.h"
29 #include "ui/gfx/geometry/rect.h" 29 #include "ui/gfx/geometry/rect.h"
30 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
31 31
32 #if defined(OS_ANDROID) 32 #if defined(OS_ANDROID)
33 #include "base/android/scoped_java_ref.h" 33 #include "base/android/scoped_java_ref.h"
34 #include "content/public/browser/android/download_delegate.h"
34 #endif 35 #endif
35 36
36 namespace base { 37 namespace base {
37 class DictionaryValue; 38 class DictionaryValue;
38 class TimeTicks; 39 class TimeTicks;
39 } 40 }
40 41
41 namespace blink { 42 namespace blink {
42 struct WebFindOptions; 43 struct WebFindOptions;
43 } 44 }
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 731
731 // Requests the rects of the current find matches from the renderer 732 // Requests the rects of the current find matches from the renderer
732 // process. |current_version| is the version of find rects that the caller 733 // process. |current_version| is the version of find rects that the caller
733 // already knows about. This version will be compared to the current find 734 // already knows about. This version will be compared to the current find
734 // rects version in the renderer process (which is updated whenever the rects 735 // rects version in the renderer process (which is updated whenever the rects
735 // change), to see which new rect data will need to be sent back. 736 // change), to see which new rect data will need to be sent back.
736 // 737 //
737 // TODO(paulmeyer): This process will change slightly once multi-process 738 // TODO(paulmeyer): This process will change slightly once multi-process
738 // find-in-page is implemented. This comment should be updated at that time. 739 // find-in-page is implemented. This comment should be updated at that time.
739 virtual void RequestFindMatchRects(int current_version) = 0; 740 virtual void RequestFindMatchRects(int current_version) = 0;
741
742 virtual void SetDownloadDelegate(DownloadDelegate* delegate) = 0;
743 virtual DownloadDelegate* GetDownloadDelegate() = 0;
744
740 #elif defined(OS_MACOSX) 745 #elif defined(OS_MACOSX)
741 // Allowing other views disables optimizations which assume that only a single 746 // Allowing other views disables optimizations which assume that only a single
742 // WebContents is present. 747 // WebContents is present.
743 virtual void SetAllowOtherViews(bool allow) = 0; 748 virtual void SetAllowOtherViews(bool allow) = 0;
744 749
745 // Returns true if other views are allowed, false otherwise. 750 // Returns true if other views are allowed, false otherwise.
746 virtual bool GetAllowOtherViews() = 0; 751 virtual bool GetAllowOtherViews() = 0;
747 #endif // OS_ANDROID 752 #endif // OS_ANDROID
748 753
749 private: 754 private:
750 // This interface should only be implemented inside content. 755 // This interface should only be implemented inside content.
751 friend class WebContentsImpl; 756 friend class WebContentsImpl;
752 WebContents() {} 757 WebContents() {}
753 }; 758 };
754 759
755 } // namespace content 760 } // namespace content
756 761
757 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698