| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |    5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ | 
|    6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |    6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9 #include <vector> |    9 #include <vector> | 
|   10  |   10  | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   69   // Specified by draft-alvestrand-constraints-resolution-00b |   69   // Specified by draft-alvestrand-constraints-resolution-00b | 
|   70   static const char kMinAspectRatio[];  // minAspectRatio |   70   static const char kMinAspectRatio[];  // minAspectRatio | 
|   71   static const char kMaxAspectRatio[];  // maxAspectRatio |   71   static const char kMaxAspectRatio[];  // maxAspectRatio | 
|   72   static const char kMaxWidth[];  // maxWidth |   72   static const char kMaxWidth[];  // maxWidth | 
|   73   static const char kMinWidth[];  // minWidthOnCaptureFormats |   73   static const char kMinWidth[];  // minWidthOnCaptureFormats | 
|   74   static const char kMaxHeight[];  // maxHeight |   74   static const char kMaxHeight[];  // maxHeight | 
|   75   static const char kMinHeight[];  // minHeight |   75   static const char kMinHeight[];  // minHeight | 
|   76   static const char kMaxFrameRate[];  // maxFrameRate |   76   static const char kMaxFrameRate[];  // maxFrameRate | 
|   77   static const char kMinFrameRate[];  // minFrameRate |   77   static const char kMinFrameRate[];  // minFrameRate | 
|   78  |   78  | 
|   79   // Default resolution. If no constraints are specified and the delegate |   79   enum { | 
|   80   // support it, this is the resolution that will be used. |   80     // Default resolution. If no constraints are specified and the delegate | 
|   81   static const int kDefaultWidth; |   81     // support it, this is the resolution that will be used. | 
|   82   static const int kDefaultHeight; |   82     kDefaultWidth = 640, | 
|   83   static const int kDefaultFrameRate; |   83     kDefaultHeight = 480, | 
|   84   static const int kUnknownFrameRate; |   84  | 
 |   85     kDefaultFrameRate = 30, | 
 |   86     kUnknownFrameRate = 0, | 
 |   87   }; | 
|   85  |   88  | 
|   86  protected: |   89  protected: | 
|   87   void DoStopSource() override; |   90   void DoStopSource() override; | 
|   88  |   91  | 
|   89   // Sets ready state and notifies the ready state to all registered tracks. |   92   // Sets ready state and notifies the ready state to all registered tracks. | 
|   90   virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state); |   93   virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state); | 
|   91  |   94  | 
|   92   // Sets muted state and notifies it to all registered tracks. |   95   // Sets muted state and notifies it to all registered tracks. | 
|   93   virtual void SetMutedState(bool state); |   96   virtual void SetMutedState(bool state); | 
|   94  |   97  | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  174  |  177  | 
|  175   // NOTE: Weak pointers must be invalidated before all other member variables. |  178   // NOTE: Weak pointers must be invalidated before all other member variables. | 
|  176   base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; |  179   base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; | 
|  177  |  180  | 
|  178   DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); |  181   DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); | 
|  179 }; |  182 }; | 
|  180  |  183  | 
|  181 }  // namespace content |  184 }  // namespace content | 
|  182  |  185  | 
|  183 #endif  // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |  186 #endif  // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ | 
| OLD | NEW |