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

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

Issue 2737893002: Mojoify the RequestThumbnailForContextNode IPC message and reply (Closed)
Patch Set: change swap() call and rebase 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..5c9dfdb071217c62da0c485131235f9246735349 100644
--- a/chrome/browser/ui/android/context_menu_helper.h
+++ b/chrome/browser/ui/android/context_menu_helper.h
@@ -7,10 +7,12 @@
#include <memory>
#include <string>
+#include <vector>
#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 +52,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::vector<uint8_t>& thumbnail_data,
const gfx::Size& original_size);
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
@@ -60,6 +63,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