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

Side by Side Diff: webkit/glue/web_intent_service_data.h

Issue 8417043: Add webkit_glue namespace. Improve some variable and test names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_ 5 #ifndef WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_
6 #define WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_ 6 #define WEBKIT_GLUE_WEB_INTENT_SERVICE_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include <iosfwd> 11 #include <iosfwd>
12 12
13 namespace webkit_glue {
14
13 // Describes the relevant elements of a WebIntent service. 15 // Describes the relevant elements of a WebIntent service.
14 struct WebIntentServiceData { 16 struct WebIntentServiceData {
15 // An intents disposition determines which context the service is opened in. 17 // An intents disposition determines which context the service is opened in.
16 enum Disposition { 18 enum Disposition {
17 DISPOSITION_WINDOW, // Open service inside a new window. (Default) 19 DISPOSITION_WINDOW, // Open service inside a new window. (Default)
18 DISPOSITION_INLINE, // Open service inside the picker UI window. 20 DISPOSITION_INLINE, // Open service inside the picker UI window.
19 }; 21 };
20 22
21 WebIntentServiceData(); 23 WebIntentServiceData();
22 ~WebIntentServiceData(); 24 ~WebIntentServiceData();
23 25
24 bool operator==(const WebIntentServiceData& other) const; 26 bool operator==(const WebIntentServiceData& other) const;
25 27
26 GURL service_url; // URL for service invocation. 28 GURL service_url; // URL for service invocation.
27 string16 action; // Name of action provided by service. 29 string16 action; // Name of action provided by service.
28 string16 type; // MIME type of data accepted by service. 30 string16 type; // MIME type of data accepted by service.
29 string16 title; // The title of the service. 31 string16 title; // The title of the service.
30 Disposition disposition; // The context the service is opened in. 32 Disposition disposition; // The context the service is opened in.
31 }; 33 };
32 34
33 // Printing operator - helps gtest produce readable error messages. 35 // Printing operator - helps gtest produce readable error messages.
34 std::ostream& operator<<(std::ostream& os, const WebIntentServiceData& intent); 36 std::ostream& operator<<(std::ostream& os,
37 const webkit_glue::WebIntentServiceData& intent);
38
39 } // namespace webkit_glue
35 40
36 #endif // CHROME_BROWSER_INTENTS_WEB_INTENT_SERVICE_DATA_H_ 41 #endif // CHROME_BROWSER_INTENTS_WEB_INTENT_SERVICE_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698