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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/UserMediaRequest.h

Issue 1373773003: Implement 'window.isSecureContext'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: document. Created 5 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void failConstraint(const String& constraintName, const String& message); 67 void failConstraint(const String& constraintName, const String& message);
68 void failUASpecific(const String& name, const String& message, const String& constraintName); 68 void failUASpecific(const String& name, const String& message, const String& constraintName);
69 69
70 bool audio() const; 70 bool audio() const;
71 bool video() const; 71 bool video() const;
72 WebMediaConstraints audioConstraints() const; 72 WebMediaConstraints audioConstraints() const;
73 WebMediaConstraints videoConstraints() const; 73 WebMediaConstraints videoConstraints() const;
74 74
75 // errorMessage is only set if requestIsPrivilegedContext() returns |false|. 75 // errorMessage is only set if requestIsPrivilegedContext() returns |false|.
76 // Caller is responsible for properly setting errors and canceling request. 76 // Caller is responsible for properly setting errors and canceling request.
77 bool isPrivilegedContextUse(String& errorMessage); 77 bool isSecureContextUse(String& errorMessage);
78 78
79 // ContextLifecycleObserver 79 // ContextLifecycleObserver
80 void contextDestroyed() override; 80 void contextDestroyed() override;
81 81
82 DECLARE_VIRTUAL_TRACE(); 82 DECLARE_VIRTUAL_TRACE();
83 83
84 private: 84 private:
85 UserMediaRequest(ExecutionContext*, UserMediaController*, WebMediaConstraint s audio, WebMediaConstraints video, NavigatorUserMediaSuccessCallback*, Navigato rUserMediaErrorCallback*); 85 UserMediaRequest(ExecutionContext*, UserMediaController*, WebMediaConstraint s audio, WebMediaConstraints video, NavigatorUserMediaSuccessCallback*, Navigato rUserMediaErrorCallback*);
86 86
87 WebMediaConstraints m_audio; 87 WebMediaConstraints m_audio;
88 WebMediaConstraints m_video; 88 WebMediaConstraints m_video;
89 89
90 RawPtrWillBeMember<UserMediaController> m_controller; 90 RawPtrWillBeMember<UserMediaController> m_controller;
91 91
92 Member<NavigatorUserMediaSuccessCallback> m_successCallback; 92 Member<NavigatorUserMediaSuccessCallback> m_successCallback;
93 Member<NavigatorUserMediaErrorCallback> m_errorCallback; 93 Member<NavigatorUserMediaErrorCallback> m_errorCallback;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // UserMediaRequest_h 98 #endif // UserMediaRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698