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

Unified Diff: content/common/geolocation_messages.h

Issue 722153003: Implement basic mojo Permission service and use it for Geolocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 1 month 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
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/permission_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/geolocation_messages.h
diff --git a/content/common/geolocation_messages.h b/content/common/geolocation_messages.h
deleted file mode 100644
index b66a1919b7986c8f6feb9f70b32628f2d97bb109..0000000000000000000000000000000000000000
--- a/content/common/geolocation_messages.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// IPC messages for geolocation.
-// Multiply-included message file, hence no include guard.
-
-#include "content/public/common/geoposition.h"
-#include "ipc/ipc_message_macros.h"
-#include "url/gurl.h"
-
-#define IPC_MESSAGE_START GeolocationMsgStart
-
-IPC_ENUM_TRAITS_MAX_VALUE(content::Geoposition::ErrorCode,
- content::Geoposition::ERROR_CODE_LAST)
-
-IPC_STRUCT_TRAITS_BEGIN(content::Geoposition)
- IPC_STRUCT_TRAITS_MEMBER(latitude)
- IPC_STRUCT_TRAITS_MEMBER(longitude)
- IPC_STRUCT_TRAITS_MEMBER(altitude)
- IPC_STRUCT_TRAITS_MEMBER(accuracy)
- IPC_STRUCT_TRAITS_MEMBER(altitude_accuracy)
- IPC_STRUCT_TRAITS_MEMBER(heading)
- IPC_STRUCT_TRAITS_MEMBER(speed)
- IPC_STRUCT_TRAITS_MEMBER(timestamp)
- IPC_STRUCT_TRAITS_MEMBER(error_code)
- IPC_STRUCT_TRAITS_MEMBER(error_message)
-IPC_STRUCT_TRAITS_END()
-
-// Messages sent from the browser to the renderer.
-
-// Reply in response to GeolocationHostMsg_RequestPermission.
-IPC_MESSAGE_ROUTED2(GeolocationMsg_PermissionSet,
- int /* bridge_id */,
- bool /* is_allowed */)
-
-// Messages sent from the renderer to the browser.
-
-// The |bridge_id| representing |host| is requesting permission to access
-// geolocation position. This will be replied by GeolocationMsg_PermissionSet.
-// TODO(mlamouri): |origin| should be a security origin to guarantee that a
-// proper origin is passed.
-IPC_MESSAGE_ROUTED3(GeolocationHostMsg_RequestPermission,
- int /* bridge_id */,
- GURL /* origin in the frame requesting geolocation */,
- bool /* user_gesture */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/permission_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698