forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move gcm_internals resources and constants to //components.
These are moved in order to be shared on iOS. resource_ids are updated as follows: generated_resources.grd: -100 components_strings.grd : +70 components_chromium_strings.grd: +10 components_resources.grd: +20 Review URL: https://codereview.chromium.org/1339803003 Cr-Commit-Position: refs/heads/master@{#348949}
- Loading branch information
droger
authored and
Commit bot
committed
Sep 15, 2015
1 parent
d24a029
commit e89640c
Showing
13 changed files
with
183 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2015 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. | ||
|
||
#include "components/gcm_driver/gcm_internals_constants.h" | ||
|
||
namespace gcm_driver { | ||
|
||
// Resource paths. | ||
const char kGcmInternalsCSS[] = "gcm_internals.css"; | ||
const char kGcmInternalsJS[] = "gcm_internals.js"; | ||
|
||
// Message handlers. | ||
const char kGetGcmInternalsInfo[] = "getGcmInternalsInfo"; | ||
const char kSetGcmInternalsInfo[] = "gcmInternals.setGcmInternalsInfo"; | ||
const char kSetGcmInternalsRecording[] = "setGcmInternalsRecording"; | ||
|
||
// GCM internal info. | ||
const char kAndroidId[] = "androidId"; | ||
const char kCheckinInfo[] = "checkinInfo"; | ||
const char kConnectionClientCreated[] = "connectionClientCreated"; | ||
const char kConnectionInfo[] = "connectionInfo"; | ||
const char kConnectionState[] = "connectionState"; | ||
const char kDeviceInfo[] = "deviceInfo"; | ||
const char kGcmClientCreated[] = "gcmClientCreated"; | ||
const char kGcmClientState[] = "gcmClientState"; | ||
const char kGcmEnabled[] = "gcmEnabled"; | ||
const char kIsRecording[] = "isRecording"; | ||
const char kProfileServiceCreated[] = "profileServiceCreated"; | ||
const char kReceiveInfo[] = "receiveInfo"; | ||
const char kRegisteredAppIds[] = "registeredAppIds"; | ||
const char kRegistrationInfo[] = "registrationInfo"; | ||
const char kResendQueueSize[] = "resendQueueSize"; | ||
const char kSendInfo[] = "sendInfo"; | ||
const char kSendQueueSize[] = "sendQueueSize"; | ||
|
||
} // namespace gcm_driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2015 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. | ||
|
||
#ifndef COMPONENTS_GCM_DRIVER_GCM_INTERNALS_CONSTANTS_H_ | ||
#define COMPONENTS_GCM_DRIVER_GCM_INTERNALS_CONSTANTS_H_ | ||
|
||
namespace gcm_driver { | ||
|
||
// Resource paths. | ||
// Must match the resource file names. | ||
extern const char kGcmInternalsCSS[]; | ||
extern const char kGcmInternalsJS[]; | ||
|
||
// Message handlers. | ||
// Must match the constants used in the resource files. | ||
extern const char kGetGcmInternalsInfo[]; | ||
extern const char kSetGcmInternalsInfo[]; | ||
extern const char kSetGcmInternalsRecording[]; | ||
|
||
// GCM internal info. | ||
// Must match the constants used in the resource files. | ||
extern const char kAndroidId[]; | ||
extern const char kCheckinInfo[]; | ||
extern const char kConnectionClientCreated[]; | ||
extern const char kConnectionInfo[]; | ||
extern const char kConnectionState[]; | ||
extern const char kDeviceInfo[]; | ||
extern const char kGcmClientCreated[]; | ||
extern const char kGcmClientState[]; | ||
extern const char kGcmEnabled[]; | ||
extern const char kIsRecording[]; | ||
extern const char kProfileServiceCreated[]; | ||
extern const char kReceiveInfo[]; | ||
extern const char kRegisteredAppIds[]; | ||
extern const char kRegistrationInfo[]; | ||
extern const char kResendQueueSize[]; | ||
extern const char kSendInfo[]; | ||
extern const char kSendQueueSize[]; | ||
|
||
} // namespace gcm_driver | ||
|
||
#endif // COMPONENTS_GCM_DRIVER_GCM_INTERNALS_CONSTANTS_H_ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<grit-part> | ||
<include name="IDR_GCM_DRIVER_GCM_INTERNALS_HTML" file="../gcm_driver/resources/gcm_internals.html" type="BINDATA" /> | ||
<include name="IDR_GCM_DRIVER_GCM_INTERNALS_CSS" file="../gcm_driver/resources/gcm_internals.css" type="BINDATA" /> | ||
<include name="IDR_GCM_DRIVER_GCM_INTERNALS_JS" file="../gcm_driver/resources/gcm_internals.js" type="BINDATA" /> | ||
</grit-part> |
Oops, something went wrong.