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

Side by Side Diff: Source/core/page/WorkerNavigator.h

Issue 22927015: Introduce NavigatorID IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/NavigatorID.idl ('k') | Source/core/page/WorkerNavigator.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 #include "wtf/RefCounted.h" 33 #include "wtf/RefCounted.h"
34 #include "wtf/text/WTFString.h" 34 #include "wtf/text/WTFString.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class WorkerNavigator : public RefCounted<WorkerNavigator>, public ScriptWrappab le, public NavigatorBase, public Supplementable<WorkerNavigator> { 38 class WorkerNavigator : public RefCounted<WorkerNavigator>, public ScriptWrappab le, public NavigatorBase, public Supplementable<WorkerNavigator> {
39 public: 39 public:
40 static PassRefPtr<WorkerNavigator> create(const String& userAgent) { return adoptRef(new WorkerNavigator(userAgent)); } 40 static PassRefPtr<WorkerNavigator> create(const String& userAgent) { return adoptRef(new WorkerNavigator(userAgent)); }
41 virtual ~WorkerNavigator(); 41 virtual ~WorkerNavigator();
42 42
43 virtual String userAgent() const; 43 virtual String userAgent() const OVERRIDE;
44 44
45 private: 45 private:
46 explicit WorkerNavigator(const String&); 46 explicit WorkerNavigator(const String&);
47 47
48 String m_userAgent; 48 String m_userAgent;
49 }; 49 };
50 50
51 } // namespace WebCore 51 } // namespace WebCore
52 52
53 #endif // WorkerNavigator_h 53 #endif // WorkerNavigator_h
OLDNEW
« no previous file with comments | « Source/core/page/NavigatorID.idl ('k') | Source/core/page/WorkerNavigator.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698