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

Side by Side Diff: media/base/state_matrix.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "media/base/state_matrix.h" 5 #include "media/base/state_matrix.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 StateMatrix::StateMatrix() { 11 StateMatrix::StateMatrix() {
12 } 12 }
13 13
14 StateMatrix::~StateMatrix() { 14 StateMatrix::~StateMatrix() {
15 STLDeleteValues(&states_); 15 STLDeleteValues(&states_);
16 } 16 }
17 17
18 bool StateMatrix::IsStateDefined(int state) { 18 bool StateMatrix::IsStateDefined(int state) {
19 return states_.find(state) != states_.end(); 19 return states_.find(state) != states_.end();
20 } 20 }
21 21
22 int StateMatrix::ExecuteHandler(void* instance, int state) { 22 int StateMatrix::ExecuteHandler(void* instance, int state) {
23 return states_.find(state)->second->ExecuteHandler(instance); 23 return states_.find(state)->second->ExecuteHandler(instance);
24 } 24 }
25 25
26 } // namespace media 26 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698