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

Unified Diff: chrome/browser/ui/android/context_menu_helper.h

Issue 2737893002: Mojoify the RequestThumbnailForContextNode IPC message and reply (Closed)
Patch Set: Remove watcher; use ContextMenuWaiter Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/context_menu_helper.h
diff --git a/chrome/browser/ui/android/context_menu_helper.h b/chrome/browser/ui/android/context_menu_helper.h
index 8e9e57477599123410cc01c1de7cf327eb6c76f5..eeb0b742b1105d86debae0c1604b0be5a78cf9ac 100644
--- a/chrome/browser/ui/android/context_menu_helper.h
+++ b/chrome/browser/ui/android/context_menu_helper.h
@@ -11,6 +11,7 @@
#include "base/android/jni_android.h"
#include "base/callback.h"
#include "base/macros.h"
+#include "chrome/common/thumbnail_capturer.mojom.h"
#include "content/public/browser/web_contents_user_data.h"
#include "content/public/common/context_menu_params.h"
#include "ui/gfx/geometry/size.h"
@@ -50,7 +51,8 @@ class ContextMenuHelper
static base::android::ScopedJavaLocalRef<jobject> CreateJavaContextMenuParams(
const content::ContextMenuParams& params);
- void OnShareImage(const std::string& thumbnail_data,
+ void OnShareImage(chrome::mojom::ThumbnailCapturerPtr thumbnail_capturer,
+ const std::string& thumbnail_data,
const gfx::Size& original_size);
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
@@ -60,6 +62,8 @@ class ContextMenuHelper
int render_frame_id_;
int render_process_id_;
+ base::WeakPtrFactory<ContextMenuHelper> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ContextMenuHelper);
};

Powered by Google App Engine
This is Rietveld 408576698